[osg-users] GL3 Profile

Maxim Stere osgforum at tevs.eu
Tue Jun 26 10:39:44 PDT 2018


Hi Dan,


>  I had to download and slightly modify the Khronos glcorearb.h file


That is actually what I'm trying to avoid. Having another dependency which users have to download and modify. 


> What and where is the "modern default windows GL headers" ?


There is only one gl/GL.h in windows. It is the "modern" one since it will never be updated. It does not give you anything past OpenGL1.1 i think. 
With my fix, users would still need to manually use the Open GL extension functions to access all the latest functionality as they do now, but they wont have to manually configure cmake. 
My fix is only a cmake fix, not an OSG functionality fix. It lets the user define OPENGL_PROFILE before pressing "Configure" in windows cmake and automatically sets up the disabling of deprecated functions in OSG. Without it you have to know and manually select what you think should not be in the GL3 profile. 
Robert already has that defined in CMake, in windows it is just never called unless you have the old gl3.h header...which no one does anymore. So this is more of an update. 

I'll make a pull request, and let Robert look at it...

------------------------
Thank you,
--Maxim

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74175#74175







More information about the osg-users mailing list