I found a useful billiards library in Borland delphi for my hobby project. The code is object oriented (in Object pascal). I want to render it using webGL (javascript) in a Chrome browser.
The idea is that I would have to make one call to make from javascript, which will access the interface from delphi lib and give me a new position, rotation and scale values โโin the corresponding array.
For this, I want to develop the NPAPI lib Scriptable plugin in Delphi (assuming the lack of a UI is only a lib API).
1) I want to export the necessary physics APIs from Delphi through this NPAPI plugin and access them on my html page using JavaScript. I am aiming for chrome. 2) Any simple "hello world" tutorial or article related to this will be very helpful.
3) Any help on using Firebreath to achieve the same is preferable. How to use Delphi with Firebreath?
source share