PDA

View Full Version : OpenGL 1.4



MemLeak
03-24-2004, 01:01 PM
Hi everybody!

I've buyed the new OpenGL redbook v1.4. There is a lot of good exemples in there but I cannot execute most of them because I don't have v1.4 of opengl! I tried to find it out but it's seem to be more complicated that I have expected!

Somebody can give me a cue for setting my computer to use every 1.4 opengl exemples of the red book?

thanks!!

Lurking
03-24-2004, 01:11 PM
This really depends on your graphics card and the drivers installed. Go to the website of your graphics card and get the latest drivers!

http://www.nvidia.com
http://www.ati.com

endash
03-24-2004, 05:50 PM
If you are using Windows, look into http://glew.sf.net (Windows doesn't provide thte latest headers and such, although video drivers do.)

MemLeak
03-25-2004, 10:13 AM
Thanks guys!!

I have downloaded the latest drivers for my graphics card. So now, my drivers is supposed to support openGL up to 1.5.

But still, the I cannot compile the redbook examples.

for examples, If I try to compile cubemap.c from the redbook,
I have:

GL_TEXTURE_CUBE_MAP_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT : undeclared identifier

and it continues!!So there must be something I'm doiing wrong!!

I use VStudio C++ 6

Thank for helping

nexusone
03-25-2004, 10:25 AM
There is two parts to openGL the video drivers, which only the user needs and the compiler librarys.

Because microsoft controls the library files for windows you can not get a library past 1.1, but luckly openGL has a work around for this.

Since the newest openGL video drivers are updated by the video card vender and not microsoft. They have the newer openGL function supported via the video drivers. You can access these functions in windows and linux through what is called extensions.

There is a link on the main page of this website for the extension headers and also a simple search will turn up how to use them.

Also I think Nvidia and ATI have SDK's with the newest headers you can download them from there website.


Originally posted by MemLeak:
Thanks guys!!

I have downloaded the latest drivers for my graphics card. So now, my drivers is supposed to support openGL up to 1.5.

But still, the I cannot compile the redbook examples.

for examples, If I try to compile cubemap.c from the redbook,
I have:

GL_TEXTURE_CUBE_MAP_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT : undeclared identifier
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT : undeclared identifier

and it continues!!So there must be something I'm doiing wrong!!

I use VStudio C++ 6

Thank for helping

MemLeak
03-25-2004, 12:07 PM
Thanks for the hint!!

I have made a research and I have found this article!

http://www.gamedev.net/reference/programming/features/oglext/

Now everything work!!