glBegin
/glEnd
and per-vertex drawing with glVertex
I can understand that using arrays can be faster.
But where is glLoadIdentity
? glMultMatrix
? glTranslate
? glRotate
?
Why do we have to handle all the matrix stuff ourselves?
glBegin
/glEnd
and per-vertex drawing with glVertex
I can understand that using arrays can be faster.
But where is glLoadIdentity
? glMultMatrix
? glTranslate
? glRotate
?
Why do we have to handle all the matrix stuff ourselves?
WebGL is an Open ES 2.0 binding. OpenGL ES 2.0 (and modern OpenGL 3.2+) does not have these deprecated functions, everything must be done in shaders and or your own matrix libraries.
Good thing is that there is plenty of matrix libraries available for WebGL, one of the best/fastest being glMatrix ( http://glmatrix.googlecode.com/ ).