diff options
author | Kenneth Russel <[email protected]> | 2003-08-06 21:26:19 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-08-06 21:26:19 +0000 |
commit | dd16a976876a779dc0ee6da9ebf5ada29f5781c7 (patch) | |
tree | 4e2c08aeb99ae5318000836371455153ee204c72 /make/gl-impl-macosx.cfg | |
parent | 661fec76c5ccd030016d66675024ec604752ccda (diff) |
Fixed (?) build problem on X11 and Mac OS X
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@46 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-macosx.cfg')
-rw-r--r-- | make/gl-impl-macosx.cfg | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/make/gl-impl-macosx.cfg b/make/gl-impl-macosx.cfg index c5a0ade2f..fad4ac4f9 100644 --- a/make/gl-impl-macosx.cfg +++ b/make/gl-impl-macosx.cfg @@ -10,6 +10,7 @@ Include gl-glx-common.cfg EmitProcAddressTable true ProcAddressTableClassName GLProcAddressTable +ContextVariableName _context CustomCCode #include <inttypes.h> @@ -26,24 +27,24 @@ CustomCCode typedef unsigned int* PUINT; CustomJavaCode MacOSXGLImpl public MacOSXGLImpl(MacOSXGLContext context) CustomJavaCode MacOSXGLImpl { -CustomJavaCode MacOSXGLImpl this.context = context; +CustomJavaCode MacOSXGLImpl this._context = context; CustomJavaCode MacOSXGLImpl } CustomJavaCode MacOSXGLImpl /** This constructor should be used manually in order to CustomJavaCode MacOSXGLImpl create a GL object that can be used with the Cocoa NSOpenGLView. */ CustomJavaCode MacOSXGLImpl public MacOSXGLImpl() CustomJavaCode MacOSXGLImpl { -CustomJavaCode MacOSXGLImpl this.context = new MacOSXDummyGLContext(this); +CustomJavaCode MacOSXGLImpl this._context = new MacOSXDummyGLContext(this); CustomJavaCode MacOSXGLImpl } CustomJavaCode MacOSXGLImpl public boolean isFunctionAvailable(String glFunctionName) CustomJavaCode MacOSXGLImpl { -CustomJavaCode MacOSXGLImpl return context.isFunctionAvailable(glFunctionName); +CustomJavaCode MacOSXGLImpl return _context.isFunctionAvailable(glFunctionName); CustomJavaCode MacOSXGLImpl } CustomJavaCode MacOSXGLImpl public boolean isExtensionAvailable(String glExtensionName) CustomJavaCode MacOSXGLImpl { -CustomJavaCode MacOSXGLImpl return context.isExtensionAvailable(glExtensionName); +CustomJavaCode MacOSXGLImpl return _context.isExtensionAvailable(glExtensionName); CustomJavaCode MacOSXGLImpl } CustomJavaCode MacOSXGLImpl /** Forces a recomputation of which extensions are available. @@ -51,13 +52,13 @@ CustomJavaCode MacOSXGLImpl Should only be called if this MacOSXGLImpl is b CustomJavaCode MacOSXGLImpl in conjunction with an NSOpenGLView instead of a GLCanvas. */ CustomJavaCode MacOSXGLImpl public void resetGLFunctionAvailability() CustomJavaCode MacOSXGLImpl { -CustomJavaCode MacOSXGLImpl if (!(context instanceof MacOSXDummyGLContext)) { +CustomJavaCode MacOSXGLImpl if (!(_context instanceof MacOSXDummyGLContext)) { CustomJavaCode MacOSXGLImpl throw new GLException("Should only be called if being used with NSOpenGLView"); CustomJavaCode MacOSXGLImpl } -CustomJavaCode MacOSXGLImpl ((MacOSXDummyGLContext) context).resetGLFunctionAvailability(); +CustomJavaCode MacOSXGLImpl ((MacOSXDummyGLContext) _context).resetGLFunctionAvailability(); CustomJavaCode MacOSXGLImpl } -CustomJavaCode MacOSXGLImpl private MacOSXGLContext context; +CustomJavaCode MacOSXGLImpl private MacOSXGLContext _context; CustomJavaCode MacOSXGLImpl /** CustomJavaCode MacOSXGLImpl * Provides platform-independent access to the wglAllocateMemoryNV / |