Updating GLEW for newer extensions?

BlitzMax Forums/OpenGL Module/Updating GLEW for newer extensions?

Kryzon(Posted 2010) [#1]
Hello,
recently a new Enum for Occlusion Queries was approved by the ARB, it's the "ANY_SAMPLES_PASSED" (which returns a boolean rather than the amount of samples passed).
The thing is, this obviously isn't in glew.bmx.

How would one go about adding this new Enum (and any other recent additions, for that matter)?


ImaginaryHuman(Posted 2010) [#2]
Do a search for glew on the forums... somewhere I think I made a post about how to update glew to the latest version to get GL 3 commands?

But even so, if the ARB only just approved this enum then what are the chances that the OpenGL driver on your system will support it?


Dreamora(Posted 2010) [#3]
Pretty good if it is NVIDIA, bad if ATI and close to impossible if OSX or Intel (especially in case of GL3 + OSX :) )


Grover(Posted 2010) [#4]
Hi Kryzon have a look here:
http://developer.nvidia.com/object/opengl_driver.html
There are gl header files with exact mappings for the enums and such. NVidia's drivers already support OpenGL4 pretty well, ATI.. as Dreamora said.. hit and miss..
Here is a link to the current glew.h from OpenGL.
http://www.opengl.org/registry/api/glext.h
The current definition is:
#ifndef GL_ARB_occlusion_query2
#define GL_ANY_SAMPLES_PASSED 0x8C2F
#endif
You can manually add this if you want - potentially this can be included directly as a header I think? (not sure exactly if the compiler would be happy?).


Kryzon(Posted 2010) [#5]
Hello Grover,
thanks a lot for the info!