From f326119fd60eb3a851317bbed5bd57a535816014 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 26 Oct 2011 12:50:44 +0200 Subject: OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7 --- make/stub_includes/macosx/OpenGL/OpenGL.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'make') 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. */ -- cgit v1.2.3