# This .cfg file is used to generate the interface and implementing # class for the AGL extensions. # Note that there are currently no such extensions exposed on Mac OS # X, but if in the future there are, this structure will allow them to # be easily exposed. Package com.sun.opengl.impl.macosx.agl Style InterfaceAndImpl JavaClass AGLExt ImplPackage com.sun.opengl.impl.macosx.agl ImplJavaClass AGLExtImpl Include gl-common-macosx.cfg EmitProcAddressTable true ProcAddressTableClassName AGLExtProcAddressTable GetProcAddressTableExpr _context.getAGLExtProcAddressTable() # Ignore everything that doesn't start with cgl or AGL IgnoreNot ^(agl|AGL).+ CustomCCode #include CustomCCode #include CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "glext.h" are parsed. */ CustomCCode #define GL_GLEXT_PROTOTYPES CustomCCode /* Include the OpenGL headers */ CustomCCode #include CustomCCode #include CustomCCode /* Provide Windows typedefs */ CustomCCode typedef void* LPVOID; CustomCCode typedef unsigned int* PUINT; CustomJavaCode AGLExt public boolean isFunctionAvailable(String glFunctionName); CustomJavaCode AGLExt public boolean isExtensionAvailable(String glExtensionName); CustomJavaCode AGLExtImpl public AGLExtImpl(GLContextImpl context) { CustomJavaCode AGLExtImpl this._context = context; CustomJavaCode AGLExtImpl } CustomJavaCode AGLExtImpl public boolean isFunctionAvailable(String glFunctionName) CustomJavaCode AGLExtImpl { CustomJavaCode AGLExtImpl return _context.isFunctionAvailable(glFunctionName); CustomJavaCode AGLExtImpl } CustomJavaCode AGLExtImpl public boolean isExtensionAvailable(String glExtensionName) CustomJavaCode AGLExtImpl { CustomJavaCode AGLExtImpl return _context.isExtensionAvailable(glExtensionName); CustomJavaCode AGLExtImpl } CustomJavaCode AGLExtImpl private GLContextImpl _context;