[web] how to start WebGL with c++?

Started by
3 comments, last by Daaark 14 years, 1 month ago
Hey guys!I am trying to make a webgame,and I got a lot question about it... I knew flash is a good option for it,but flash take a lot resource and performance is quite bad,so the webgl or silverlight seems is a better choice. WebGl is cool,I have google it for a while and find some websites made a lot great tutorial for it.like http://learningwebgl.com/blog/?cat=5,this great,but my question is... Could webgl to be written in c++ or just for java script?(it seems support all DOM language)if it does!it would be save a lot time to develope... silverlight is using c# and have a bunch resource,but webgl could run any platform(although MS said silverlight support any browsers,but...) For webGame.....which one will be better? any advice will be very kind,thanks.
Advertisement
WebGL is meant to run directly in your browser without a plugin. And since browsers can't make sense of C++, you'll have to stick to &#106avascript
thanks for reply :)
I am curious if jsvascript call java then java call c++ is possible...

I have search for some information about this.

&#106avascript call java<br>http://www.rgagnon.com/javadetails/java-0170.html<br>java call c++<br>http://www.javaworld.com/javaworld/javatips/jw-javatip17.html?page=1<br><br>and I have a openglES2.0 framework written by c++....<br><br>can I make it?
That has nothing at all to do with WebGL. The point of WebGL is to allow &#106avascript the ability to use the GL API with no additional downloads or plugins. If you are using Java and C++ then you are not using WebGL at all but you are using OpenGL with custom plugins/applets.
If you want to make a web game, try the unity plugin. It works great.

This topic is closed to new replies.

Advertisement