ModelDrawMode.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. summary = 'Different draw modes for meshes in ModelDatas.',
  3. description = 'The DrawMode of a mesh determines how its vertices are connected together.',
  4. values = {
  5. {
  6. name = 'points',
  7. description = 'Each vertex is draw as a single point.'
  8. },
  9. {
  10. name = 'lines',
  11. description = 'Every pair of vertices is drawn as a line.'
  12. },
  13. {
  14. name = 'linestrip',
  15. description = 'Draws a single line through all of the vertices.'
  16. },
  17. {
  18. name = 'lineloop',
  19. description = [[
  20. Draws a single line through all of the vertices, then connects back to the first vertex.
  21. ]]
  22. },
  23. {
  24. name = 'strip',
  25. description = [[
  26. Vertices are rendered as triangles. After the first 3 vertices, each
  27. subsequent vertex connects to the previous two.
  28. ]]
  29. },
  30. {
  31. name = 'triangles',
  32. description = 'Every 3 vertices forms a triangle.'
  33. },
  34. {
  35. name = 'fan',
  36. description = [[
  37. Vertices are rendered as triangles. After the first 3 vertices, each
  38. subsequent vertex is connected to the previous vertex and the first vertex.
  39. ]]
  40. }
  41. },
  42. related = {
  43. 'ModelData:getMeshDrawMode'
  44. }
  45. }