OpenGL 3

Started by
1 comment, last by V-man 13 years, 9 months ago
Hello,

I need a simple OpenGL 3.0 or higher example drawing a line, nothing more complicated. I managed to Get OpenGL 3.2 loaded correctly, but the line does not display, if I set clear it works well, just the line doesn't. Please help.
Advertisement
So make sure you aren't using any of the commands on this Qucik Reference card that are drawn in Blue text:
http://www.khronos.org/files/opengl-quick-reference-card.pdf. Basically if you're not using VAOs (vertex array objects) and VBOs (vertex buffer objects) then it's not in the OpenGL 3.0+ standard.

A good way to keep honest is to download a pure 3.2 opengl header (Available somewhere on opengl.org)

But otherwise post your code.

-me
There is this
http://www.opengl.org/wiki/Tutorials
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);

This topic is closed to new replies.

Advertisement