Browse Source

lineloop;

bjorn 7 years ago
parent
commit
f2e19456fa
2 changed files with 8 additions and 0 deletions
  1. 4 0
      api/init.lua
  2. 4 0
      api/lovr/graphics/MeshDrawMode.lua

+ 4 - 0
api/init.lua

@@ -5680,6 +5680,10 @@ return {
               name = "linestrip",
               name = "linestrip",
               description = "The first two vertices have a line drawn between them, and each vertex after that will be connected to the previous vertex with a line."
               description = "The first two vertices have a line drawn between them, and each vertex after that will be connected to the previous vertex with a line."
             },
             },
+            {
+              name = "lineloop",
+              description = "Similar to linestrip, except the last vertex is connected back to the first."
+            },
             {
             {
               name = "strip",
               name = "strip",
               description = "The first three vertices define a triangle.  Each vertex after that creates a triangle using the new vertex and last two vertices."
               description = "The first three vertices define a triangle.  Each vertex after that creates a triangle using the new vertex and last two vertices."

+ 4 - 0
api/lovr/graphics/MeshDrawMode.lua

@@ -23,6 +23,10 @@ return {
         connected to the previous vertex with a line.
         connected to the previous vertex with a line.
       ]]
       ]]
     },
     },
+    {
+      name = 'lineloop',
+      description = 'Similar to linestrip, except the last vertex is connected back to the first.'
+    },
     {
     {
       name = 'strip',
       name = 'strip',
       description = [[
       description = [[