Maven module :un.engine : engine-opengl-util :
Class : un.impl.opengl.GLState
Extends/Implements : un.api.CObject
Subclasses : -

Store all GL state variables.
author  Johann Sorel


Variables : -
Functions : GLState, get, save, restore, getBoolean, getBooleans, getBooleanI, getInteger, getIntegers, getIntegerI, getLong, getLongs, getLongI, getFloat, getFloats, getFloatI, getDouble, getDoubles, getDoubleI, toChars, getCurrentProgramId, getViewPort





public void GLState ()

public Object get (int code)

public void save (GL gl)

public void restore (GL gl)

public boolean getBoolean (GL gl, int code)

public boolean[] getBooleans (GL gl, int code, int nb)

public boolean getBooleanI (GL gl, int code, int index)

public int getInteger (GL gl, int code)

public int[] getIntegers (GL gl, int code, int nb)

public int getIntegerI (GL gl, int code, int index)

public long getLong (GL gl, int code)

public long[] getLongs (GL gl, int code, int nb)

public long getLongI (GL gl, int code, int index)

public float getFloat (GL gl, int code)

public float[] getFloats (GL gl, int code, int nb)

public float getFloatI (GL gl, int code, int index)

public double getDouble (GL gl, int code)

public double[] getDoubles (GL gl, int code, int nb)

public double getDoubleI (GL gl, int code, int index)

public Chars toChars ()

public int getCurrentProgramId (GL gl)


Get GL viewport.
param  gl
return  int[]{x,y,width,height}
public int[] getViewPort (GL gl)