WebGL Hello World
2014-02-07
Here is my first attempt on WebGL
Since I've heard about WebGL that I've wanted to try to do something with it, but my main focus has been C++ and OpenGL. I'm working on my little game engine for some time now, and I haven't had the try webgl and js.
Then I've seen that esmcripten is here for people like me, that likes to develop in c++ and then it compiles the c++ code, do its magic and output JS.
So here is my first atempt on using esmcripten with part of my engine to build a simple rotating cube.
I know that its a really simple example, but its more a proof of concept that my engine with some minor tweaks can be "compiled" for the web.
If somebody requests, I can post what those changes and tweaks that were necessary for this to work.
(Bear in mind that it was compiled for debugging, so no optimization was done when compiling, and yea, the js for the rotating cube is 14MB(!) but that's mainly because most of the features of the engine are still there, despite that aren't used)
Since I've heard about WebGL that I've wanted to try to do something with it, but my main focus has been C++ and OpenGL. I'm working on my little game engine for some time now, and I haven't had the try webgl and js.
Then I've seen that esmcripten is here for people like me, that likes to develop in c++ and then it compiles the c++ code, do its magic and output JS.
So here is my first atempt on using esmcripten with part of my engine to build a simple rotating cube.
I know that its a really simple example, but its more a proof of concept that my engine with some minor tweaks can be "compiled" for the web.
If somebody requests, I can post what those changes and tweaks that were necessary for this to work.
(Bear in mind that it was compiled for debugging, so no optimization was done when compiling, and yea, the js for the rotating cube is 14MB(!) but that's mainly because most of the features of the engine are still there, despite that aren't used)
0 comments
Leave a comment
*
*
*
please fill the required fields (name, mail, text).
*
*
Error!
please fill the required fields (name, mail, text).