PDA

View Full Version : openGL version?



travellor
02-20-2003, 07:28 AM
Hello, all,

how can I check the openGL/OpenGL extension version in my machine?

Thanks a lot,

- Travellor

Bob
02-20-2003, 08:34 AM
glGetString(GL_VERSION)

travellor
02-20-2003, 08:58 AM
thanks!

the version of gl in my machine is 1.3.1 by query result.
but I got a problem to run 3D texture mapping? tried the example of red book, gave me error like this:
[QUOTE]
This program demonstrates a feature which is not in OpenGL Version 1.0 or 1.1.
If your implementation of OpenGL has the right extensions,
you may be able to modify this program to make it run.
QUOTE]

Mazy
02-20-2003, 09:08 AM
Then your card probably dont have it in HW and thus dont export it as an extension.. if you load the funciton yourself and without the EXT or ARB postfix you will get the functions.. but software emulated.. beware, thats slooow.

travellor
02-20-2003, 09:57 AM
my card is GeForce 4 ti4400,.. is that support?

the emulator, like NV30 from nvidia?

shinpaughp
02-20-2003, 10:43 AM
Try using glGetString(GL_EXTENSIONS). If the extension you are looking for is within that string it is supported. Extension string does NOT equal extension function name.

Look here (http://www.opengl.org/developers/faqs/technical/extensions.htm) for more info.

Obli
02-20-2003, 11:31 AM
Mazy, I am quite interested about the sw emulation...

How exactly this works? To what openGL versions does apply? How does it interact with extensions?
Does it come from the extended GL or from the base GL?

Right now, I remember I read something similar on the SOMETHING_fragment_program specification...

Thanks!