public class GLPixelStorageModes extends Object
Constructor and Description |
---|
GLPixelStorageModes()
Create instance w/o
save(GL) |
GLPixelStorageModes(GL gl)
Create instance w/
save(GL) |
Modifier and Type | Method and Description |
---|---|
void |
restore(GL gl)
Restores the pixel storage mode.
|
void |
save(GL gl)
Save the pixel storage mode, if not saved yet.
|
void |
setAlignment(GL gl,
int packAlignment,
int unpackAlignment)
Sets the
GL.GL_PACK_ALIGNMENT and GL.GL_UNPACK_ALIGNMENT . |
void |
setPackAlignment(GL gl,
int packAlignment)
Sets the
GL.GL_PACK_ALIGNMENT . |
void |
setPackRowLength(GL2ES3 gl,
int packRowLength)
Sets the
GL2ES3.GL_PACK_ROW_LENGTH . |
void |
setRowLength(GL2ES3 gl,
int packRowLength,
int unpackRowLength)
Sets the
GL2ES3.GL_PACK_ROW_LENGTH and GL2ES2.GL_UNPACK_ROW_LENGTH . |
void |
setUnpackAlignment(GL gl,
int unpackAlignment)
Sets the
GL.GL_UNPACK_ALIGNMENT . |
void |
setUnpackRowLength(GL2ES2 gl,
int unpackRowLength)
Sets the
GL2ES2.GL_UNPACK_ROW_LENGTH . |
public GLPixelStorageModes()
save(GL)
public final void setPackAlignment(GL gl, int packAlignment)
GL.GL_PACK_ALIGNMENT
.
Saves the pixel storage modes if not saved yet.
public final void setUnpackAlignment(GL gl, int unpackAlignment)
GL.GL_UNPACK_ALIGNMENT
.
Saves the pixel storage modes if not saved yet.
public final void setAlignment(GL gl, int packAlignment, int unpackAlignment)
GL.GL_PACK_ALIGNMENT
and GL.GL_UNPACK_ALIGNMENT
.
Saves the pixel storage modes if not saved yet.
public final void setPackRowLength(GL2ES3 gl, int packRowLength)
GL2ES3.GL_PACK_ROW_LENGTH
.
Saves the pixel storage modes if not saved yet.
public final void setUnpackRowLength(GL2ES2 gl, int unpackRowLength)
GL2ES2.GL_UNPACK_ROW_LENGTH
.
Saves the pixel storage modes if not saved yet.
public final void setRowLength(GL2ES3 gl, int packRowLength, int unpackRowLength)
GL2ES3.GL_PACK_ROW_LENGTH
and GL2ES2.GL_UNPACK_ROW_LENGTH
.
Saves the pixel storage modes if not saved yet.
public final void save(GL gl)
Restore via restore(GL)
public final void restore(GL gl) throws GLException
GLException
- if not saved via one of the set methods.Copyright 2010 JogAmp Community.