getVertexCount.lua 600 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the total vertex count of the Model.',
  3. description = 'Returns the total vertex count of the Model.',
  4. arguments = {},
  5. returns = {
  6. count = {
  7. type = 'number',
  8. description = 'The total number of vertices.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'count' }
  15. }
  16. },
  17. notes = [[
  18. This isn't always the same as the length of the vertex buffer, since a mesh in the Model could
  19. be drawn by multiple nodes.
  20. ]],
  21. related = {
  22. 'Model:getTriangles',
  23. 'Model:getTriangleCount',
  24. 'ModelData:getVertexCount'
  25. }
  26. }