Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
For target webgl is there a way to access copperlicht engine from within extensions? Currently I can do it this way In the html file generated, if I update the line --------------------------------------------------------------- <script type="text/javascript"> <!-- startCopperLichtFromFile( ------------------------------------------------------------------ with --------------------------------------------------------------- <script type="text/javascript"> <!-- var eng =startCopperLichtFromFile( ----------------------------------------------------------- then I can access the engine using this global variable "eng". Is there a way to generate the html file with the above? I can do it manually of course but during testing the change would get overridden every time. It would be nice if coppercube can do this or better take a html template to do a build. |
||||
|
Sorry... Currently coppercube can't access copperlicht from extensions... I also made a request for that kind of thing but we'll have to keep waiting, if @niko can one day decide to add it. |
||||
|
I think if you replace the "minified and uglyfied" version of "copperlichtdata\copperlicht.js" in your coppercube project with just the "minifed" version of "copperlicht.js" from the copperlicht sdk, then using the method I described above you should be able to access the copperlicht api from your extensions. But I haven't tried this a whole lot. Let me try some more and see if I run into any issues. |
||||
|
Well wish you the best result and I hope it works because I'm pretty sure that @niko has already converted your ccb scripts to copperlicht scripts while building it but if it works please give me a response. I'm hoping to hear from you cos I don't have access to my PC this period. |
|