Library/OpenGL

GLSL Notes

 * Unused uniforms will be eliminated from the linked program; getUniformLocation on such a uniform should return -1.

GL_QUADS has been removed. What do I do?
Rumor is that the driver (i.e. software) converts all quad data to triangle data before it is uploaded to the card.

Therefore, if that is in fact true, doing the conversion from quads to triangles yourself in software before the glBindBuffer calls should be equivalent.

GL_ALPHA_TEST and glAlphaFunc are gone. What do I do?
It's trivial to reimplement this in the shader:

Read back a texture?
Snippet from debug code for reading back a DDS (note: it doesn't matter what the internal format is) and saving to disk using LxEngine's save_png:

...pass per-primitive data to a GLSL geometry shader?

 * Example: pass flags on a face to indicate whether the face should be flat-shaded or smooth-shaded

See.