diff options
author | Sven Gothel <[email protected]> | 2011-11-05 05:45:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-05 05:45:19 +0100 |
commit | fe4f9f3f83cda05052549cc34fb3f7acb4eabb9c (patch) | |
tree | b4968ddd865bb881832e4b335b18cbdddfda9e59 /src/jogl/native/macosx/MacOSXCustomCGLCode.c | |
parent | 34ef2815dd0f4dc84f35fe5bf72ea876d4b9e882 (diff) |
OSX: CGL type cleanup ; layeredSurface impl.
- Use proper OSX types for NS/CGL prototypes (gluegen) and impl.
- Impl layeredSurface (native):
- OSXUtil: NSView backing creation
- OSXUtil: AttachJAWTSurfaceLayer
- CGL: NSOpenGLLayer type impl. and hook
Diffstat (limited to 'src/jogl/native/macosx/MacOSXCustomCGLCode.c')
-rw-r--r-- | src/jogl/native/macosx/MacOSXCustomCGLCode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jogl/native/macosx/MacOSXCustomCGLCode.c b/src/jogl/native/macosx/MacOSXCustomCGLCode.c index c29be889d..f8b7a800f 100644 --- a/src/jogl/native/macosx/MacOSXCustomCGLCode.c +++ b/src/jogl/native/macosx/MacOSXCustomCGLCode.c @@ -5,8 +5,7 @@ #include </usr/include/machine/types.h> #include "macosx-window-system.h" -void CGLQueryPixelFormat(void* pixelFormat, int* iattrs, int niattrs, int* ivalues) { - CGLPixelFormatObj pix = (CGLPixelFormatObj) pixelFormat; +void CGLQueryPixelFormat(CGLPixelFormatObj fmt, int* iattrs, int niattrs, int* ivalues) { // FIXME: think about how specifying this might affect the API int virtualScreen = 0; @@ -14,7 +13,7 @@ void CGLQueryPixelFormat(void* pixelFormat, int* iattrs, int niattrs, int* ivalu GLint value; for (i = 0; i < niattrs && iattrs[i]>0; i++) { CGLPixelFormatAttribute attr = (CGLPixelFormatAttribute) iattrs[i]; - if ( kCGLNoError == CGLDescribePixelFormat(pix, virtualScreen, attr, &value) ) { + if ( kCGLNoError == CGLDescribePixelFormat(fmt, virtualScreen, attr, &value) ) { ivalues[i] = value; } else { ivalues[i] = 0; |