aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-26 12:50:44 +0200
committerSven Gothel <[email protected]>2011-10-26 12:50:44 +0200
commitf326119fd60eb3a851317bbed5bd57a535816014 (patch)
treebbe8cd14ed7c2e883a90818fb9303bc7d73001f1 /make
parent82c7c16b6298a5a781c9721edb8b81d7ec2aaf81 (diff)
OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7
Diffstat (limited to 'make')
-rw-r--r--make/stub_includes/macosx/OpenGL/OpenGL.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/make/stub_includes/macosx/OpenGL/OpenGL.h b/make/stub_includes/macosx/OpenGL/OpenGL.h
index e6f3030ad..1a3ddf203 100644
--- a/make/stub_includes/macosx/OpenGL/OpenGL.h
+++ b/make/stub_includes/macosx/OpenGL/OpenGL.h
@@ -45,10 +45,20 @@ typedef enum _CGLPixelFormatAttribute {
kCGLPFACompliant = 83, /* renderer is opengl compliant */
kCGLPFADisplayMask = 84, /* mask limiting supported displays */
kCGLPFAPBuffer = 90, /* can be used to render to a pbuffer */
- kCGLPFARemotePBuffer = 91, /* can be used to render offline to a pbuffer */
+ kCGLPFARemotePBuffer = 91, /* can be used to render offline to a pbuffer */
+ kCGLPFAAcceleratedCompute = 97, /* hardware accelerated */
+ kCGLPFAOpenGLProfile = 99, /* OpenGL Profile */
kCGLPFAVirtualScreenCount = 128 /* number of virtual screens in this format */
} CGLPixelFormatAttribute;
+/**
+ * OpenGL Profiles Values
+ */
+typedef enum _CGLOpenGLProfile {
+ kCGLOGLPVersion_Legacy = 0x1000, /* Legacy/Pre-OpenGL 3.0 */
+ kCGLOGLPVersion_3_2_Core = 0x3200 /* OpenGL 3.2 Core */
+} CGLOpenGLProfile;
+
/*
** Error return values from CGLGetError.
*/