Updating GLEW for newer extensions?
BlitzMax Forums/OpenGL Module/Updating GLEW for newer extensions?
| ||
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)? |
| ||
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? |
| ||
Pretty good if it is NVIDIA, bad if ATI and close to impossible if OSX or Intel (especially in case of GL3 + OSX :) ) |
| ||
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?). |
| ||
Hello Grover, thanks a lot for the info! |