com.jogamp.gluegen.opengl
Class GLConfiguration

java.lang.Object
  extended by ProcAddressConfiguration
      extended by com.jogamp.gluegen.opengl.GLConfiguration

public class GLConfiguration
extends ProcAddressConfiguration


Constructor Summary
GLConfiguration(GLEmitter emitter)
           
 
Method Summary
protected  void dispatch(String cmd, StringTokenizer tok, File file, String filename, int lineNo)
           
 void dumpIgnores()
           
 boolean getAllowNonGLExtensions()
          If true, accept all non encapsulated defines and functions, as it is mandatory for GL declarations.
 boolean getAutoUnifyExtensions()
          Should we automatically ignore extensions that have already been fully subsumed into the OpenGL core namespace, and if they have not been, indicate which definition is not already in the core?
 boolean getDropUniqVendorExtensions(String extName)
          shall the non unified (uniq) vendor extensions be dropped ?
 Set<String> getExtensionsRenamedIntoCore()
          Returns the OpenGL extensions that should have all of their constant definitions and functions renamed into the core namespace; for example, glGenFramebuffersEXT to glGenFramebuffers and GL_FRAMEBUFFER_EXT to GL_FRAMEBUFFER.
 BuildStaticGLInfo getGLInfo()
          Returns the information about the association between #defines, function symbols and the OpenGL extensions they are defined in.
 boolean isBufferObjectFunction(String name)
           
 List<String> javaPrologueForMethod(MethodBinding binding, boolean forImplementingMethodCall, boolean eraseBufferAndArrayTypes)
          Overrides javaPrologueForMethod in superclass and automatically generates prologue code for functions associated with buffer objects.
 void parseGLHeaders(GlueEmitterControls controls)
          Parses any GL headers specified in the configuration file for the purpose of being able to ignore an extension at a time.
protected  void readBufferObjectKind(StringTokenizer tok, String filename, int lineNo)
           
protected  boolean shouldIgnoreExtension(String symbol, boolean criteria)
           
 boolean shouldIgnoreInImpl(String symbol)
           
 boolean shouldIgnoreInImpl(String symbol, boolean checkEXT)
           
 boolean shouldIgnoreInInterface(String symbol)
           
 boolean shouldIgnoreInInterface(String symbol, boolean checkEXT)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLConfiguration

public GLConfiguration(GLEmitter emitter)
Method Detail

dispatch

protected void dispatch(String cmd,
                        StringTokenizer tok,
                        File file,
                        String filename,
                        int lineNo)
                 throws IOException
Throws:
IOException

readBufferObjectKind

protected void readBufferObjectKind(StringTokenizer tok,
                                    String filename,
                                    int lineNo)

javaPrologueForMethod

public List<String> javaPrologueForMethod(MethodBinding binding,
                                          boolean forImplementingMethodCall,
                                          boolean eraseBufferAndArrayTypes)
Overrides javaPrologueForMethod in superclass and automatically generates prologue code for functions associated with buffer objects.


dumpIgnores

public void dumpIgnores()

shouldIgnoreExtension

protected boolean shouldIgnoreExtension(String symbol,
                                        boolean criteria)

shouldIgnoreInInterface

public boolean shouldIgnoreInInterface(String symbol)

shouldIgnoreInInterface

public boolean shouldIgnoreInInterface(String symbol,
                                       boolean checkEXT)

shouldIgnoreInImpl

public boolean shouldIgnoreInImpl(String symbol)

shouldIgnoreInImpl

public boolean shouldIgnoreInImpl(String symbol,
                                  boolean checkEXT)

getAutoUnifyExtensions

public boolean getAutoUnifyExtensions()
Should we automatically ignore extensions that have already been fully subsumed into the OpenGL core namespace, and if they have not been, indicate which definition is not already in the core?


getAllowNonGLExtensions

public boolean getAllowNonGLExtensions()
If true, accept all non encapsulated defines and functions, as it is mandatory for GL declarations.


getDropUniqVendorExtensions

public boolean getDropUniqVendorExtensions(String extName)
shall the non unified (uniq) vendor extensions be dropped ?


isBufferObjectFunction

public boolean isBufferObjectFunction(String name)

parseGLHeaders

public void parseGLHeaders(GlueEmitterControls controls)
                    throws IOException
Parses any GL headers specified in the configuration file for the purpose of being able to ignore an extension at a time.

Throws:
IOException

getGLInfo

public BuildStaticGLInfo getGLInfo()
Returns the information about the association between #defines, function symbols and the OpenGL extensions they are defined in.


getExtensionsRenamedIntoCore

public Set<String> getExtensionsRenamedIntoCore()
Returns the OpenGL extensions that should have all of their constant definitions and functions renamed into the core namespace; for example, glGenFramebuffersEXT to glGenFramebuffers and GL_FRAMEBUFFER_EXT to GL_FRAMEBUFFER.



Copyright 2010 JogAmp Community.