scale.lua 968 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. return {
  2. tag = 'graphicsTransforms',
  3. summary = 'Scale the coordinate system.',
  4. description = [[
  5. Scales the coordinate system in 3 dimensions. This will cause objects to appear bigger or
  6. smaller.
  7. The scaling will last until `lovr.draw` returns or the transformation is popped off the
  8. transformation stack.
  9. ]],
  10. arguments = {
  11. {
  12. name = 'x',
  13. type = 'number',
  14. default = '1.0',
  15. description = 'The amount to scale on the x axis.'
  16. },
  17. {
  18. name = 'y',
  19. type = 'number',
  20. default = 'x',
  21. description = 'The amount to scale on the y axis.'
  22. },
  23. {
  24. name = 'z',
  25. type = 'number',
  26. default = 'x',
  27. description = 'The amount to scale on the z axis.'
  28. }
  29. },
  30. returns = {},
  31. notes = 'Order matters when scaling, translating, and rotating the coordinate system.',
  32. related = {
  33. 'lovr.graphics.rotate',
  34. 'lovr.graphics.translate',
  35. 'lovr.graphics.transform'
  36. }
  37. }