lovr.graphics.push
Pushes a copy of the current transform onto the transformation stack. After changing the transform using lovr.graphics.translate
, lovr.graphics.rotate
, and lovr.graphics.scale
, the original state can be restored using lovr.graphics.pop
.
lovr.graphics.push()
Arguments
None
Returns
Nothing
Notes
An error is thrown if more than 64 matrices are pushed. This can happen accidentally if a push isn't followed by a corresponding pop.
See also
lovr.graphics.pop
lovr.graphics