Allow creating an OpenGL 3.2 context, especially on MacOS

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Allow creating an OpenGL 3.2 context, especially on MacOS

Post by Niffo »

Please Fred, is it possible to be able to choose the "profile version" when using an OpenGLGadget, especially on MacOS.
As you know, MacOS does not allow to use OpenGL3.2+ functions/extensions if the context was not created at least with "OGL 3.2 Core".
It seems it is only the value of "NSOpenGLPFAOpenGLProfile" to change to "NSOpenGLProfileVersion3_2Core" if the context is created with Cocoa NSOpenGL
or the value of "kCGLPFAOpenGLProfile" to change to "kCGLOGLPVersion_3_2_Core" if the context is created with CGL.

Many thanks.
Niffo