getDrawMode.lua 488 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Get the draw mode of the Mesh.',
  3. description = [[
  4. Returns the `DrawMode` of the mesh, which controls how the vertices in the Mesh are connected
  5. together to create pixels. The default is `triangles`.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. mode = {
  10. type = 'DrawMode',
  11. description = 'The current draw mode.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'mode' }
  18. }
  19. },
  20. related = {
  21. 'Pass:setMeshMode'
  22. }
  23. }