views:

70

answers:

2

I'm trying to write an OpenGL application so I installed the Windows 7 SDK. However, it appears that it is OpenGL 1.1...

#define GL_VERSION_1_1                    1

How can I find which version of OpenGL I have installed(*.dll) and where can I find the newer *.lib/*.h files?

+3  A: 

There is no new version of OpenGL in Win7. You must download new headers form opengl.org and use extension techniques of OpenGL to obtain advanced functionality. For version of OpenGL use this function glGetString

MaxFX
glGetString is returning NULL for all 4 values...
luiscubal
You can use glGetString only after initialize OpenGL context. If there is no context in you program it's always error to use anyone other Ope nGL functions.
MaxFX
@MaxFX I managed to figure it out, but thank you.
luiscubal
+5  A: 

Microsoft hasn't updated their OpenGL headers/libraries for quite a while. To use newer features, you normally want to use GLEW or GLEE.

Jerry Coffin