AFAIK that’s the generic windows OpenGL header & they’re not alowed to mess with that. It’s stuck at 1.1 and has been for ages. It’s a windows curse. Intel has a rev’d one to 1.3 but it’s a wrapper.
Include glext.h also and use wglGetProcAddress for the newer functions you need, the tokens are in the header and typedefs for the functions you need.
Querry the OpenGL version as a string once you get a context, don’t use compile time checking against a definition from the header, use runtime checking to test for the version you get for your context and to see if wglGetProcAddress returns valid functions.
Well. Now i want to compile the first project of the book More OpenGL Game Programming. As the examples of this book use from the glee, i have added the glee.h and glee.lib files to the appropriate folders of my VC++ compiler. but when i want to compile the project, i see 5 errors:
‘glGenBuffers’ : undeclared identifier
‘glBindBuffer’ : undeclared identifier
‘glBufferData’ : undeclared identifier
‘glBufferSubData’ : undeclared identifier
‘glDeleteBuffers’ : undeclared identifier
So something is going wrong… I have downloaded the latest version of the GLEE. I have downloaded the latest version of the SDK and have added the new header files to my GL folder.
So how can i solve this problem?
-Ehsan-