getVertexCount.lua 565 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the number of vertices in the Mesh.',
  3. description = [[
  4. Returns the number of vertices in the Mesh. The vertex count is set when the Mesh is created
  5. and can't change afterwards.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. count = {
  10. type = 'number',
  11. description = 'The number of vertices in the Mesh.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'count' }
  18. }
  19. },
  20. related = {
  21. 'Mesh:getVertexStride',
  22. 'Mesh:getVertexFormat',
  23. 'lovr.graphics.newMesh',
  24. 'Model:getMesh'
  25. }
  26. }