com.jogamp.opengl.impl
Class GLStateTracker
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLStateTracker
public GLStateTracker()
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.