|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Builds the StaticGLInfo class from the OpenGL header files (i.e., gl.h and glext.h) whose paths were passed as arguments to main(String[]).
More...
Public Member Functions | |
| void | setDebug (final boolean v) |
| void | parse (final String[] cHeaderFilePaths) throws IOException |
| Parses the supplied C header files and adds the function associations contained therein to the internal map. More... | |
| void | parse (final String cHeaderFilePath) throws IOException |
| Parses the supplied C header file and adds the function associations contained therein to the internal map. More... | |
| void | dump () |
| Set< String > | getExtension (final String identifier) |
| Set< String > | getDeclarations (final String extension) |
| Set< String > | getExtensions () |
| void | emitJavaCode (final PrintWriter output, final String packageName) |
Static Public Member Functions | |
| static void | main (final String[] args) throws IOException |
| The first argument is the package to which the StaticGLInfo class belongs, the second is the path to the directory in which that package's classes reside, and the remaining arguments are paths to the C header files that should be parsed. More... | |
Protected Member Functions | |
| void | addAssociation (final String identifier, final String association) |
Protected Attributes | |
| Map< String, Set< String > > | declarationToExtensionMap = new HashMap<String, Set<String>>() |
| Map< String, Set< String > > | extensionToDeclarationMap = new HashMap<String, Set<String>>() |
| boolean | DEBUG = false |
Static Protected Attributes | |
| static final int | funcIdentifierGroup = 9 |
| static final Pattern | funcPattern |
| static final Pattern | associationPattern |
| static final Pattern | ifPattern |
| static final Pattern | elsePattern |
| static final Pattern | endifPattern |
| static final int | defineIdentifierGroup = 1 |
| static final Pattern | definePattern |
Builds the StaticGLInfo class from the OpenGL header files (i.e., gl.h and glext.h) whose paths were passed as arguments to main(String[]).
It relies upon the assumption that a function's membership is scoped by preprocessor blocks in the header files that match the following pattern:
#ifndef GL_XXXX GLAPI <returnType> <APIENTRY|GLAPIENTRY> glFuncName(<params>) #endif GL_XXXX
For example, if it parses the following data:
#ifndef GL_VERSION_1_3 GLAPI void APIENTRY glActiveTexture (GLenum); GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *); GLAPI void <APIENTRY|GLAPIENTRY> glFuncName(<params>) #endif GL_VERSION_1_3 #ifndef GL_ARB_texture_compression GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); #endif
It will associate glActiveTexture and glMultiTexCoord1dv with the symbol GL_VERSION_1_3 , and associate glCompressedTexImage2DARB and glCompressedTexImage3DARB with the symbol GL_ARB_texture_compression .
Definition at line 106 of file BuildStaticGLInfo.java.
|
protected |
| void com.jogamp.gluegen.opengl.BuildStaticGLInfo.dump | ( | ) |
| void com.jogamp.gluegen.opengl.BuildStaticGLInfo.emitJavaCode | ( | final PrintWriter | output, |
| final String | packageName | ||
| ) |
| Set< String > com.jogamp.gluegen.opengl.BuildStaticGLInfo.getDeclarations | ( | final String | extension | ) |
| Set< String > com.jogamp.gluegen.opengl.BuildStaticGLInfo.getExtension | ( | final String | identifier | ) |
| Set< String > com.jogamp.gluegen.opengl.BuildStaticGLInfo.getExtensions | ( | ) |
|
static |
The first argument is the package to which the StaticGLInfo class belongs, the second is the path to the directory in which that package's classes reside, and the remaining arguments are paths to the C header files that should be parsed.
Definition at line 141 of file BuildStaticGLInfo.java.
| void com.jogamp.gluegen.opengl.BuildStaticGLInfo.parse | ( | final String | cHeaderFilePath | ) | throws IOException |
Parses the supplied C header file and adds the function associations contained therein to the internal map.
Definition at line 200 of file BuildStaticGLInfo.java.
| void com.jogamp.gluegen.opengl.BuildStaticGLInfo.parse | ( | final String[] | cHeaderFilePaths | ) | throws IOException |
Parses the supplied C header files and adds the function associations contained therein to the internal map.
Definition at line 192 of file BuildStaticGLInfo.java.
| void com.jogamp.gluegen.opengl.BuildStaticGLInfo.setDebug | ( | final boolean | v | ) |
|
staticprotected |
Definition at line 113 of file BuildStaticGLInfo.java.
|
protected |
Definition at line 133 of file BuildStaticGLInfo.java.
|
protected |
Definition at line 128 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 123 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 124 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 118 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 120 of file BuildStaticGLInfo.java.
|
protected |
Definition at line 132 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 109 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 110 of file BuildStaticGLInfo.java.
|
staticprotected |
Definition at line 116 of file BuildStaticGLInfo.java.