summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-04 20:12:04 +0000
committerKenneth Russel <[email protected]>2005-02-04 20:12:04 +0000
commit3c2f86c7e7255c073c8e05fa30fa9ce1ac253d03 (patch)
treecec286a4ca680f8524c7e9461b04a3f1d4e225d8
parent3da4f1e709572f809c7247825d384f32698fc413 (diff)
Added double-buffer argument to Mac OS X OpenGL context creation
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@212 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r--make/cgl-macosx.cfg1
-rw-r--r--make/stub_includes/macosx/window-system.c1
-rw-r--r--src/native/jogl/MacOSXWindowSystemInterface.m1
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java1
4 files changed, 4 insertions, 0 deletions
diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg
index b9ebaeabd..c7a7f3841 100644
--- a/make/cgl-macosx.cfg
+++ b/make/cgl-macosx.cfg
@@ -16,6 +16,7 @@ CustomCCode typedef int Bool;
CustomCCode #include </usr/include/machine/types.h>
CustomCCode extern void* createContext(void* shareContext, void* nsView,
+CustomCCode int doubleBuffer,
CustomCCode int redBits,
CustomCCode int greenBits,
CustomCCode int blueBits,
diff --git a/make/stub_includes/macosx/window-system.c b/make/stub_includes/macosx/window-system.c
index 4b3f95649..e5ba4307f 100644
--- a/make/stub_includes/macosx/window-system.c
+++ b/make/stub_includes/macosx/window-system.c
@@ -4,6 +4,7 @@
typedef int Bool;
void* createContext(void* shareContext, void* nsView,
+ int doubleBuffer,
int redBits,
int greenBits,
int blueBits,
diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m
index c56f6e5bb..afa0fea69 100644
--- a/src/native/jogl/MacOSXWindowSystemInterface.m
+++ b/src/native/jogl/MacOSXWindowSystemInterface.m
@@ -17,6 +17,7 @@ typedef int Bool;
NSAutoreleasePool* gAutoreleasePool = NULL;
void* createContext(void* shareContext, void* view,
+ int doubleBuffer,
int redBits,
int greenBits,
int blueBits,
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
index f8af120da..3c8027e7c 100644
--- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
+++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java
@@ -132,6 +132,7 @@ public abstract class MacOSXGLContext extends GLContext
}
nsContext = CGL.createContext(share,
nsView,
+ capabilities.getDoubleBuffered() ? 1 : 0,
capabilities.getRedBits(),
capabilities.getGreenBits(),
capabilities.getBlueBits(),