Finding OpenGL

Started by
3 comments, last by natescham 15 years, 2 months ago
I know this sounds dumb, but I have worked with sdl, ogre3d, and some directx but I do not know where to find the OpenGL sdk to link it to my compiler. I tried googling it but there were inconsistent answers. Where can I find OpenGL if it is already on my computer, or where can I download the SDK? I seen there was a nVidia OpenGL SDK but I figured it was nVidia specific? Not quite sure. Thanks. -Nate
http://tech.groups.yahoo.com/group/VGPDT/
Advertisement
I assume you're using C++. The OpenGL header and library files are included with MSVC++. Check the library and include directories for gl.h and opengl32.lib. Include the header and link the library.

Unfortunately, the header files are old so you have to query the extensions interface to get pointers to the newer functions (anything after OpenGL v1.1 I think). There's code for this sort of thing online.

The actual drivers that do stuff are either installed when you install your new video card or automatically installed by vista/xp (for older cards). If any kind of 3d program runs on your computer you probably have the OpenGL drivers installed already. =)
All right, great, that helped out,
Thanks a lot.
http://tech.groups.yahoo.com/group/VGPDT/
http://www.opengl.org/wiki/Getting_started
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);
Thank you very much for the link,
that has help me out tremendously,
Thanks!
http://tech.groups.yahoo.com/group/VGPDT/

This topic is closed to new replies.

Advertisement