For this I want to develop an NPAPI lib Scriptable plugin in Delphi(Meaning NO UI only lib of APIs).
3)Any help on using Firebreath to achieve the same is most preferable. How to use Delphi with Firebreath?
use Indy or Synapse to create a HTTP server (in Delphi), wich serves this HTML page and when the user submits form input, parse the form parameters and pass them to the billiard simulation, which should emit a list of graphic commands as a result - and convert these to WebGL (this is the hard part) statements</li> <li>
repeat until end of game</li> </ul>
ActiveXObject class to access the COM object (or, under IE, you can use the
<object> HTML tag). Make sure your COM object implements the