push.lua 630 B

123456789101112131415161718
  1. return {
  2. tag = 'graphicsTransforms',
  3. summary = 'Push a copy of the current transform onto the stack.',
  4. description = [[
  5. Pushes a copy of the current transform onto the transformation stack. After changing the
  6. transform using `lovr.graphics.translate`, `lovr.graphics.rotate`, and `lovr.graphics.scale`,
  7. the original state can be restored using `lovr.graphics.pop`.
  8. ]],
  9. arguments = {},
  10. returns = {},
  11. notes = [[
  12. An error is thrown if more than 64 matrices are pushed. This can happen accidentally if a push
  13. isn't followed by a corresponding pop.
  14. ]],
  15. related = {
  16. 'lovr.graphics.pop'
  17. }
  18. }