aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/macosx/MacOSXWindowSystemInterface.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-06 08:08:28 +0100
committerSven Gothel <[email protected]>2011-11-06 08:08:28 +0100
commit368cbf4462d7f3635c1ef4497424c360b5ccc203 (patch)
treef1e7ac3b0ddfed9677a6e135bee27831d323cad6 /src/jogl/native/macosx/MacOSXWindowSystemInterface.h
parent0038e2d41825c22bdd18a7b86a8229a3fab674a3 (diff)
OS X Layered View: Use pbuffer method (pbuffer w/ dbl buffer)
- attributes +NSOpenGLPFANoRecovery +NSOpenGLPFAAccelerated - use SurfaceUpdateListener() to notify layer - swapBufferImpl() adapt to 0038e2d41825c22bdd18a7b86a8229a3fab674a3 - pbuffer: don't enforce POT tex-size to surface size, but pbuffer only - FIXME: Check POT pbuffer/tex-size for X11/Win32/.. ! -
Diffstat (limited to 'src/jogl/native/macosx/MacOSXWindowSystemInterface.h')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.h b/src/jogl/native/macosx/MacOSXWindowSystemInterface.h
new file mode 100644
index 000000000..763930e37
--- /dev/null
+++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.h
@@ -0,0 +1,20 @@
+#import <Cocoa/Cocoa.h>
+#import <OpenGL/gl.h>
+#import <OpenGL/CGLTypes.h>
+#import <jni.h>
+
+#define VERBOSE_ON 1
+
+#ifdef VERBOSE_ON
+ // #define DBG_PRINT(...) NSLog(@ ## __VA_ARGS__)
+ #define DBG_PRINT(...) fprintf(stderr, __VA_ARGS__); fflush(stderr)
+#else
+ #define DBG_PRINT(...)
+#endif
+
+#ifndef CGL_VERSION_1_3
+ #warning this SDK doesn't support OpenGL profile
+#endif
+
+#import "macosx-window-system.h"
+