GL extensions?

Started by
1 comment, last by DJLink 12 years, 5 months ago
What exactly are OpenGL extensions? I know they add functionality to OpenGL but why cant they just be distributed as separate libraries.

How exactly would I use an extension do I need an extra dll for it?

What code do I need to add to use them, all I want is multitexturing but I need to understand GL extensions first, can somebody explain them to me or post a link that shows me how?

thanks!
Advertisement
http://www.opengl.org/wiki/OpenGL_Extensions

As for multitexturing, it went into GL in version 1.2.1 or 1.3
Check the manuals to be sure.
Therefore, it is no longer an extension.

All graphics card these days support it. All nvidia and amd chips support GL 2 and above.
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);

What exactly are OpenGL extensions? I know they add functionality to OpenGL but why cant they just be distributed as separate libraries.

How exactly would I use an extension do I need an extra dll for it?

What code do I need to add to use them, all I want is multitexturing but I need to understand GL extensions first, can somebody explain them to me or post a link that shows me how?

thanks!


You can use Glew to check if your extension exists, it's pretty simple.
[twitter]DJ_Link[/twitter]
Blog

This topic is closed to new replies.

Advertisement