DrawMode.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Different ways to draw mesh vertices.',
  3. description = [[
  4. Different ways vertices in a mesh can be connected together and filled in with pixels.
  5. ]],
  6. values = {
  7. {
  8. name = 'points',
  9. description = [[
  10. Each vertex is rendered as a single point. The size of the point can be controlled using
  11. the `pointSize` shader flag, or by writing to the `PointSize` variable in shaders. The
  12. maximum point size is given by the `pointSize` limit from `lovr.graphics.getLimits`.
  13. ]]
  14. },
  15. {
  16. name = 'lines',
  17. description = [[
  18. Pairs of vertices are connected with line segments. To draw a single line through all of
  19. the vertices, an index buffer can be used to repeat vertices. It is not currently possible
  20. to change the width of the lines, although cylinders or capsules can be used as an
  21. alternative.
  22. ]]
  23. },
  24. {
  25. name = 'triangles',
  26. description = [[
  27. Every 3 vertices form a triangle, which is filled in with pixels (unless `Pass:setWireframe`
  28. is used). This mode is the most commonly used.
  29. ]]
  30. }
  31. }
  32. }