Finished to port the code to opengles2. Only the functions defined in GLES2 are
used now
Moved ogl specifi routines into a new file
Started to implement simple state tracking
Started to make water rendering faster
Made a first attempt to implement water with vbo. Not that good since it
constantly changing. A better idea is to use one VBO per row and to make several
draw calls.
Implemented pseudo-instancing for water rendering. It also used now GPU to make
the transform
Moved OGL macros into ogl.hpp
Fixed water rendering bug
Remove a useless dimension for vertex position in water rendering
Finished to implement the immediate mode rendering. It seems there is a problem
when the buffer is not binded to 0. Sounds like a driver bug.
Fixed immediate problem by forcing some state setting at each frame
Added some cvar to tweak the rendering
Shortened immediate mode function names
Implemented a faster rendering path for the particles using a simple bucket sort
and minimizing the rendering call
Started to remove the crap to get the depth from the center pixel
Removed all math code
Fixed matrix inversion
Fixed compute of center pixel position
Removed crap from matrix test
Added a blob file to make the compilation easier with emscripten
Added blob line option for Makefile