The new OpenGL headers files contain new extensions stuff. You can download them from… just a second, I start GPU Caps Viewer and… okay I got it :thumbup: : from developer.nvidia.com/object/nvidia_opengl_specs.html.
But there are a couple of weird things:
1 – the glext.h version is 28 (#define GL_GLEXT_VERSION 28). The version I use to compile the oZone3D engine renderer is the 29. And I use this header since more than one year…
2 – the glext.h header does not compile with vc6 (yes I still use visual studio 6!) because of the GL_EXT_timer_query extension. Here is the origianl piece of code you can find in glext.h:
/* * Original code - does not compile with vc6. */ #ifndef GL_EXT_timer_query typedef signed long long GLint64EXT; typedef unsigned long long GLuint64EXT; #endif
and here is the code I updated for visual c 6:
/* Modified code for oZone3D engine - compile with vc6 */ #ifndef GL_EXT_timer_query #ifdef _WIN32 typedef signed __int64 GLint64EXT; typedef unsigned __int64 GLuint64EXT; #else typedef signed long long GLint64EXT; typedef unsigned long long GLuint64EXT; #endif #endif
I wonder if the original glext.h compiles with vc7 or vc8. If anyone has the answer, feel free to contact me…