Class GLPixelStorageModes
PACK for GPU to CPU transfers, e.g. ReadPixels, etc.
UNPACK for CPU o GPU transfers, e.g. TexImage2D, etc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidResets PACK and UNPACK pixel storage modes to their default value, i.e.final voidResets PACK pixel storage modes to their default value.final voidresetUnpack(GL gl) Resets UNPACK pixel storage modes to their default value.final voidRestores PACK and UNPACK pixel storage mode previously saved w/saveAll(GL)orsavePack(GL)andsaveUnpack(GL).final voidSaves PACK and UNPACK pixel storage modes andresetsthem, i.e.final voidSaves PACK pixel storage modes andresetsthem.final voidsaveUnpack(GL gl) Saves UNPACK pixel storage modes andresetsthem.final voidsetAlignment(GL gl, int packAlignment, int unpackAlignment) Sets theGL.GL_PACK_ALIGNMENTandGL.GL_UNPACK_ALIGNMENT.final voidsetPackAlignment(GL gl, int packAlignment) Sets theGL.GL_PACK_ALIGNMENT.final voidsetPackRowLength(GL2ES3 gl, int packRowLength) Sets theGL2ES3.GL_PACK_ROW_LENGTH.final voidsetRowLength(GL2ES3 gl, int packRowLength, int unpackRowLength) final voidsetUnpackAlignment(GL gl, int unpackAlignment) Sets theGL.GL_UNPACK_ALIGNMENT.final voidsetUnpackRowLength(GL2ES3 gl, int unpackRowLength) Sets theGL2ES2.GL_UNPACK_ROW_LENGTH.
-
Constructor Details
-
GLPixelStorageModes
public GLPixelStorageModes()Create instance w/osaveAll(GL) -
GLPixelStorageModes
Create instance w/saveAll(GL)
-
-
Method Details
-
setPackAlignment
Sets theGL.GL_PACK_ALIGNMENT.Saves the PACK pixel storage modes and
resetsthem if not saved yet, seesavePack(GL). -
setUnpackAlignment
Sets theGL.GL_UNPACK_ALIGNMENT.Saves the UNPACK pixel storage modes and
resetsthem if not saved yet, seesaveUnpack(GL). -
setAlignment
Sets theGL.GL_PACK_ALIGNMENTandGL.GL_UNPACK_ALIGNMENT.Saves the PACK and UNPACK pixel storage modes and resets them if not saved yet, see
saveAll(GL). -
setPackRowLength
Sets theGL2ES3.GL_PACK_ROW_LENGTH.Saves the PACK pixel storage modes and
resetsthem if not saved yet, seesavePack(GL). -
setUnpackRowLength
Sets theGL2ES2.GL_UNPACK_ROW_LENGTH.Saves the UNPACK pixel storage modes and
resetsthem if not saved yet, seesaveUnpack(GL). -
setRowLength
Sets theGL2ES3.GL_PACK_ROW_LENGTHandGL2ES2.GL_UNPACK_ROW_LENGTHifGLBase.isGL2ES3().Saves the PACK and UNPACK pixel storage modes and resets them if not saved yet, see
saveAll(GL). -
saveAll
Saves PACK and UNPACK pixel storage modes andresetsthem, i.e. issuessavePack(GL)andsaveUnpack(GL).Operation is skipped, if the modes were already saved.
Restore via
restore(GL) -
resetAll
Resets PACK and UNPACK pixel storage modes to their default value, i.e. issuesresetPack(GL)andresetUnpack(GL). -
restore
Restores PACK and UNPACK pixel storage mode previously saved w/saveAll(GL)orsavePack(GL)andsaveUnpack(GL).- Throws:
GLException- if neither PACK nor UNPACK modes were saved.
-
resetPack
Resets PACK pixel storage modes to their default value. -
savePack
Saves PACK pixel storage modes andresetsthem.Operation is skipped, if the modes were already saved.
Restore via
restore(GL) -
resetUnpack
Resets UNPACK pixel storage modes to their default value. -
saveUnpack
Saves UNPACK pixel storage modes andresetsthem.Operation is skipped, if the modes were already saved.
Restore via
restore(GL)
-