Skip to main content

State Stacks

For backing up graphics states using stacks.

Coordinates (Geometry) Transformations Matrix Stack

pushMatrix

Push the current active camera transformations to the MatrixStack.

pushMatrix()

popMatrix

Pop the last cam transformations from the MatrixStack.

popMatrix()

clearMatrixStack

Clear the matrix stack (By calling popMatrix()).

clearMatrixStack()

Colors Mapping Stack

pushColor

Push the current active color to the ColorStack.

pushColor()

popColor

Pop the last active color from the ColorStack.

popColor()

Colors RGB Palette Stack

pushPalette

Push the current color mapping and transparent colors list to the palettes stack.

pushPalette()

popPalette

Pop the last color mapping and transparent colors list from the palettes stack.

popPalette()