JanakiRam pisze: > Hi ALL, > > I'm trying to port an opengl based project to XULRunner > based application. I've read some blogs talking about Canvas element > for drawing 2d graphics in XULRunner application. But couldn't find > any information about 3d grahics. > > > Please provide some pointers on evaluating porting > capabilies of XULRunner for 3d grachics applications > > Thanks in Advance. >
In XUL/JavaScript you can write multi-platform GUI, but OpenGL part should be done in native, shared binary. This binary should implement XCOM interface, to be accessible from XUL. Or this binary may be standalone program, and XUL application will be only front-end to this program. Anyway, there is no sense using OpenGl from JS, it will be very inefficient. If You simply want to make multi-platform, OpenGL application, then you better check wxWidgets library (http://www.wxwidgets.org/). It is multi-platform library, compatible at source code level. It have built-in many helper classes, so you will have no need to worry about platform specific issues. As far as i remember, there is also class to do multi-platform OpenGL (google for wxOpenGL). This library, in conjunction with GCC/G++ (c & c++ compiler, also multi-platform) you may create one source code tree, which builds to native Win32/Unix/Linux/Mac binaries. If you configure GCC to be cross=platform, then you may build all binaries on one, your favorite, operating system. -- Arivald _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
