First attempt at non-deprecated code

Started by
31 comments, last by BackwardSpy 13 years, 5 months ago
Quote:Original post by BackwardSpy
I'm getting lots of mixed messages about what to use and what not to use

*** Source Snippet Removed ***

I've whipped that together based on the link I was given earlier; nothing rendering on screen yet again


I was just giving you an example. I didn't say use it.
Someone already told you glEnableClientState is deprecated.

The documents over at http://www.opengl.org say what is deprecated and what is not.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
Advertisement
The quick reference card is especially useful www.khronos.org/files/opengl-quick-reference-card.pdf
Aha, that is pretty useful!

I might print that out on a some sheets of shiny paper

This topic is closed to new replies.

Advertisement