generic vertex attribute array compatibility.

Started by
2 comments, last by Wilhelm van Huyssteen 12 years, 10 months ago
Hi.

Im writing a small 2D game. I want it to work on older hardware. was thinking of just using fixed functionality but i decided against that.

Quick Question.

will using "built in" atribute arrays (like glColorPointer) make the game work on more pc's than using generic vertex attribute array's? or were both ways introduced in the same version of opengl.

Thnx!
Advertisement
u can use generic attributs on the same hardware

Hi.

Im writing a small 2D game. I want it to work on older hardware. was thinking of just using fixed functionality but i decided against that.

Quick Question.

will using "built in" atribute arrays (like glColorPointer) make the game work on more pc's than using generic vertex attribute array's? or were both ways introduced in the same version of opengl.

Thnx!


If you want to support Intel hardware, which tend to support GL 1.3 or 1.4 or 1.5, then you should use the built-in stuff.
If you don't care for Intel, then all ATI and nVidia already support GL 2.0 for about 10 years now.
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);
Thnx for the quick and acurate replies.

This topic is closed to new replies.

Advertisement