aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-impl-macosx.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/gl-impl-macosx.cfg')
-rw-r--r--make/gl-impl-macosx.cfg15
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 /