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 GLAPIFor example, if it parses the following data:glFuncName( ) #endif GL_XXXX
#ifndef GL_VERSION_1_3 GLAPI void APIENTRY glActiveTexture (GLenum); GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *); GLAPI voidIt will associateglFuncName( ) #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
glActiveTexture and
glMultiTexCoord1dv
with the symbol
GL_VERSION_1_3 ,
and associate
glCompressedTexImage2DARB and
glCompressedTexImage3DARB
with the symbol
GL_ARB_texture_compression .
| Modifier and Type | Field and Description |
|---|---|
| protected static final Pattern | |
| protected boolean | |
| protected Map | |
| protected static final int | |
| protected static final Pattern | |
| protected static final Pattern | |
| protected static final Pattern | |
| protected Map | |
| protected static final int | |
| protected static final Pattern | |
| protected static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | |
| public void | |
| public Set | |
| public Set | |
| public Set | |
| public static void | |
| public void | |
| public void | |
| public void |
| associationPattern | back to summary |
|---|---|
| protected static final Pattern associationPattern | |
| DEBUG | back to summary |
|---|---|
| protected boolean DEBUG | |
| declarationToExtensionMap | back to summary |
|---|---|
| protected Map<String, Set<String>> declarationToExtensionMap | |
| defineIdentifierGroup | back to summary |
|---|---|
| protected static final int defineIdentifierGroup | |
| definePattern | back to summary |
|---|---|
| protected static final Pattern definePattern | |
| elsePattern | back to summary |
|---|---|
| protected static final Pattern elsePattern | |
| endifPattern | back to summary |
|---|---|
| protected static final Pattern endifPattern | |
| extensionToDeclarationMap | back to summary |
|---|---|
| protected Map<String, Set<String>> extensionToDeclarationMap | |
| funcIdentifierGroup | back to summary |
|---|---|
| protected static final int funcIdentifierGroup | |
| funcPattern | back to summary |
|---|---|
| protected static final Pattern funcPattern | |
| ifPattern | back to summary |
|---|---|
| protected static final Pattern ifPattern | |
| BuildStaticGLInfo | back to summary |
|---|---|
| public BuildStaticGLInfo() | |
| addAssociation | back to summary |
|---|---|
| protected void addAssociation(final String identifier, final String association) | |
| dump | back to summary |
|---|---|
| public void dump() | |
| emitJavaCode | back to summary |
|---|---|
| public void emitJavaCode(final PrintWriter output, final String packageName) | |
| getDeclarations | back to summary |
|---|---|
| public Set | |
| getExtension | back to summary |
|---|---|
| public Set | |
| getExtensions | back to summary |
|---|---|
| public Set | |
| main | back to summary |
|---|---|
| public 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 | |
| parse | back to summary |
|---|---|
| public void parse(final String[] cHeaderFilePaths) throws IOException Parses the supplied C header files and adds the function associations contained therein to the internal map. | |
| parse | back to summary |
|---|---|
| public void parse(final String cHeaderFilePath) throws IOException Parses the supplied C header file and adds the function associations contained therein to the internal map. | |
| setDebug | back to summary |
|---|---|
| public void setDebug(final boolean v) | |