DrawMode.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. return {
  2. summary = 'Different ways Mesh objects can be drawn.',
  3. description = [[
  4. Meshes are lists of arbitrary vertices. These vertices can be connected in different ways,
  5. leading to different shapes like lines and triangles.
  6. ]],
  7. values = {
  8. {
  9. name = 'points',
  10. description = 'Draw each vertex as a single point.'
  11. },
  12. {
  13. name = 'lines',
  14. description = [[
  15. The vertices represent a list of line segments. Each pair of vertices will have a line drawn
  16. between them.
  17. ]]
  18. },
  19. {
  20. name = 'linestrip',
  21. description = [[
  22. The first two vertices have a line drawn between them, and each vertex after that will be
  23. connected to the previous vertex with a line.
  24. ]]
  25. },
  26. {
  27. name = 'lineloop',
  28. description = 'Similar to linestrip, except the last vertex is connected back to the first.'
  29. },
  30. {
  31. name = 'strip',
  32. description = [[
  33. The first three vertices define a triangle. Each vertex after that creates a triangle using
  34. the new vertex and last two vertices.
  35. ]]
  36. },
  37. {
  38. name = 'triangles',
  39. description = 'Each set of three vertices represents a discrete triangle.'
  40. },
  41. {
  42. name = 'fan',
  43. description = [[
  44. Draws a set of triangles. Each one shares the first vertex as a common point, leading to a
  45. fan-like shape.
  46. ]]
  47. }
  48. }
  49. }