com.jogamp.opengl.util
public class GLPixelStorageModes extends Object
Constructor and Description |
---|
GLPixelStorageModes() |
Modifier and Type | Method and Description |
---|---|
void |
restore(GL gl)
Restores the pixel storage mode.
|
void |
setAlignment(GL gl,
int packAlignment,
int unpackAlignment)
Sets the
GL2ES2.GL_PACK_ALIGNMENT and GL2ES2.GL_UNPACK_ALIGNMENT . |
void |
setPackAlignment(GL gl,
int packAlignment)
Sets the
GL2ES2.GL_PACK_ALIGNMENT . |
void |
setUnpackAlignment(GL gl,
int unpackAlignment)
Sets the
GL2ES2.GL_UNPACK_ALIGNMENT . |
public final void setPackAlignment(GL gl, int packAlignment)
GL2ES2.GL_PACK_ALIGNMENT
. Saves the pixel storage modes if not saved yet.public final void setUnpackAlignment(GL gl, int unpackAlignment)
GL2ES2.GL_UNPACK_ALIGNMENT
. Saves the pixel storage modes if not saved yet.public final void setAlignment(GL gl, int packAlignment, int unpackAlignment)
GL2ES2.GL_PACK_ALIGNMENT
and GL2ES2.GL_UNPACK_ALIGNMENT
.
Saves the pixel storage modes if not saved yet.public final void restore(GL gl) throws GLException
GLException
- if not saved via one of the set methods.Copyright 2010 JogAmp Community.