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 void
Resets PACK and UNPACK pixel storage modes to their default value, i.e.final void
Resets PACK pixel storage modes to their default value.final void
resetUnpack
(GL gl) Resets UNPACK pixel storage modes to their default value.final void
Restores PACK and UNPACK pixel storage mode previously saved w/saveAll(GL)
orsavePack(GL)
andsaveUnpack(GL)
.final void
Saves PACK and UNPACK pixel storage modes andresets
them, i.e.final void
Saves PACK pixel storage modes andresets
them.final void
saveUnpack
(GL gl) Saves UNPACK pixel storage modes andresets
them.final void
setAlignment
(GL gl, int packAlignment, int unpackAlignment) Sets theGL.GL_PACK_ALIGNMENT
andGL.GL_UNPACK_ALIGNMENT
.final void
setPackAlignment
(GL gl, int packAlignment) Sets theGL.GL_PACK_ALIGNMENT
.final void
setPackRowLength
(GL2ES3 gl, int packRowLength) Sets theGL2ES3.GL_PACK_ROW_LENGTH
.final void
setRowLength
(GL2ES3 gl, int packRowLength, int unpackRowLength) final void
setUnpackAlignment
(GL gl, int unpackAlignment) Sets theGL.GL_UNPACK_ALIGNMENT
.final void
setUnpackRowLength
(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
resets
them if not saved yet, seesavePack(GL)
. -
setUnpackAlignment
Sets theGL.GL_UNPACK_ALIGNMENT
.Saves the UNPACK pixel storage modes and
resets
them if not saved yet, seesaveUnpack(GL)
. -
setAlignment
Sets theGL.GL_PACK_ALIGNMENT
andGL.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
resets
them if not saved yet, seesavePack(GL)
. -
setUnpackRowLength
Sets theGL2ES2.GL_UNPACK_ROW_LENGTH
.Saves the UNPACK pixel storage modes and
resets
them if not saved yet, seesaveUnpack(GL)
. -
setRowLength
Sets theGL2ES3.GL_PACK_ROW_LENGTH
andGL2ES2.GL_UNPACK_ROW_LENGTH
ifGLBase.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 andresets
them, 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 andresets
them.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 andresets
them.Operation is skipped, if the modes were already saved.
Restore via
restore(GL)
-