diff options
author | Kenneth Russel <[email protected]> | 2004-04-21 10:02:51 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-04-21 10:02:51 +0000 |
commit | c8440fcccaa8b306c8b52acf384fa14daec95f5c (patch) | |
tree | 494753a9aaeec60c9994b1390b3cc643514750f8 /src/net/java | |
parent | 0f2fa98495ce75434fc011e7ba2976c78edd38d0 (diff) |
Updated context creation code to unpack GLCapabilities object in Java
rather than in C using JNI. Added full-scene antialiasing (FSAA) support.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@113 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java index 470fe631d..2a34709f2 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java @@ -122,7 +122,20 @@ public abstract class MacOSXGLContext extends GLContext throw new GLException("GLContextShareSet returned an invalid OpenGL context"); } } - nsContext = CGL.createContext( capabilities, share, nsView); + nsContext = CGL.createContext(share, + nsView, + capabilities.getRedBits(), + capabilities.getGreenBits(), + capabilities.getBlueBits(), + capabilities.getAlphaBits(), + capabilities.getDepthBits(), + capabilities.getStencilBits(), + capabilities.getAccumRedBits(), + capabilities.getAccumGreenBits(), + capabilities.getAccumBlueBits(), + capabilities.getAccumAlphaBits(), + capabilities.getSampleBuffers() ? 1 : 0, + capabilities.getNumSamples()); if (nsContext == 0) { throw new GLException("Error creating nsContext"); } |