Download Opengl 2.0

Started by
17 comments, last by V-man 14 years ago
Where can I download opengl 2.0 or later? The opengl that came with vc++ was version 1.1, and for some reason i couldn't find it on the opengl website.
Advertisement
OpenGL 2.0 and higher isn't "downloaded" as such...the headers may or may not be downloaded from openGL.org, or installed with your graphics vendors SDK, but the actual code for OpenGL that you link with is a part of your graphics hardware's graphics subsystems. You may need to use a library like GLEW
You need to download GLEW library or similar, it adds functionality of newer versions of OpenGL. It's a wrapper around OpenGL extension mechanism. That means you can only use the functionality your graphics card/driver supports.
OK, thanks for the quick replies. The reason I'm asking is that before I had vista, and I was able to use glsl, as I had opengl 2.0 and GLEW_ARB_vertex_shader & GLEW_ARB_fragment_shader extensions available. However, after upgrading to windows 7, I didn't. I'm going back to glsl now, and I can't find a way of using it. I have glew installed.
Everything is explained in the wiki
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);
OK. Well it's sorta weird. Over at the exe file that can be downloaded from Nehe lesson 24 (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=24), it says that I have the extensions required, and that I have version 3.2.0. However, my version of GL.h says "#define GL_VERSION_1_1." Also, I cannot use those extensions via the code at http://www.lighthouse3d.com/opengl/glsl/index.php?ogloverview:

#include <GL/glew.h>
#include <GL/glut.h>

void main(int argc, char **argv) {

glutInit(&argc, argv);

...

glewInit();
if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader)
printf("Ready for GLSL\n");
else {
printf("Not totally ready :( \n");
exit(1);
}

setShaders();

glutMainLoop();
}

or the other (opengl 2.0 version; I didn't feel like pasting it here for space purposes) But I really have no clue what's going on right now.
Quote:Original post by http://www.opengl.org/wiki/Getting_started
Microsoft will never update gl.h and opengl32.lib that comes with their compiler. It hasn't been updated since 1995. Basically, the solution is to use glext.h and wglext.h (wglext.h is for Windows only) which define all the GL 1.2, 1.3, 1.4, 1.5, 2.0, 2.1 and above tokens and functions.


[wink]
Thanks Oberon_Command. My guess is to just include the *.h files (wglext, glext, and glxext) to my source, right? Are there any libs that come with the source or anything like that?

The reason I'm asking is because it doesn't work :( I create a windows console app, put this code in, change the linker input properties, and run the file.

#include <GL/glew.h>
#include <GL/glut.h>
#include "wglext.h"
#include "glext.h"
#include <iostream>
using namespace std;
void main(int argc, char **argv) {
glutInit(&argc, argv);
glewInit();
if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader)cout <<("Ready for GLSL\n");
else cout<<("Not totally ready :( \n");
char c;cin>>c;
}

It doesn't work. or at least it prints "Not totally ready :(".
You need to create a window also, or you don't have a rendering context to work with.
oh....lol....you can tell I'm new to graphics theory and the OpenGL pipeline and all the other lower level elements. But thanks it works now!

This topic is closed to new replies.

Advertisement