com.jogamp.opengl.impl
Class GLStateTracker

java.lang.Object
  extended by com.jogamp.opengl.impl.GLStateTracker

public class GLStateTracker
extends Object

Tracks as closely as possible OpenGL states. GLStateTracker objects are allocated on a per-OpenGL-context basis.

Currently supported states: PixelStorei


Constructor Summary
GLStateTracker()
           
 
Method Summary
 void clearStates(boolean enable)
           
 boolean getInt(int pname, int[] params, int params_offset)
           
 boolean getInt(int pname, IntBuffer params, int dummy)
           
 boolean isEnabled()
           
 void popAttrib()
           
 void pushAttrib(int flags)
           
 void resetStates()
           
 void setEnabled(boolean on)
           
 void setInt(int pname, int param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLStateTracker

public GLStateTracker()
Method Detail

clearStates

public void clearStates(boolean enable)

setEnabled

public void setEnabled(boolean on)

isEnabled

public boolean isEnabled()

getInt

public boolean getInt(int pname,
                      int[] params,
                      int params_offset)
Returns:
true if found in our map, otherwise false, which forces the caller to query GL.

getInt

public boolean getInt(int pname,
                      IntBuffer params,
                      int dummy)
Returns:
true if found in our map, otherwise false, which forces the caller to query GL.

setInt

public void setInt(int pname,
                   int param)

pushAttrib

public void pushAttrib(int flags)

popAttrib

public void popAttrib()

resetStates

public void resetStates()


Copyright 2010 JogAmp Community.