What are the Attribute locations for fixed function pipeline in OpenGL 4.0++ core profile?

Outside of NVIDIA drivers, this does not work (reliably). Compliant drivers will only alias glVertexPointer (…) to attribute slot 0. NV in their infinite wisdom devised a standard non-standard scheme many years ago where they aliased all of the fixed-function pointers to certain attribute locations, but I do not know if new NV drivers support … Read more

Rotating a Group of Vectors

Construct 4×4 transform matrix instead of Quaternions. Do not forget that OpenGL has column wise matrix so for double m[16]; is X axis vector in m[ 0],m[ 1],m[ 2] is Y axis vector in m[ 4],m[ 5],m[ 6] is Z axis vector in m[ 8],m[ 9],m[10] and position is in m[12],m[13],m[14] The LCS mean local … Read more

glVertexAttribPointer and glVertexAttribFormat: What’s the difference?

glVertexAttribPointer has two flaws, one of them semi-subjective, the other objective. The first flaw is its dependency on GL_ARRAY_BUFFER. This means that the behavior of glVertexAttribPointer is contingent on whatever was bound to GL_ARRAY_BUFFER at the time it was called. But once it is called, what is bound to GL_ARRAY_BUFFER no longer matters; the buffer … Read more