Преглед на файлове

Improve :getTriangles description;

bjorn преди 6 месеца
родител
ревизия
0da4680676
променени са 3 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 2 2
      api/init.lua
  2. 4 1
      api/lovr/data/ModelData/getTriangles.lua
  3. 4 1
      api/lovr/graphics/Model/getTriangles.lua

+ 2 - 2
api/init.lua

@@ -7047,7 +7047,7 @@ return {
                     {
                       name = "indices",
                       type = "table",
-                      description = "The vertex indices.  Every 3 indices describes a triangle."
+                      description = "A list of numbers representing how to connect the vertices into triangles.  Each number is a 1-based index into the `vertices` table, and every 3 indices form a triangle."
                     }
                   }
                 }
@@ -17049,7 +17049,7 @@ return {
                     {
                       name = "indices",
                       type = "table",
-                      description = "The vertex indices.  Every 3 indices describes a triangle."
+                      description = "A list of numbers representing how to connect the vertices into triangles.  Each number is a 1-based index into the `vertices` table, and every 3 indices form a triangle."
                     }
                   }
                 }

+ 4 - 1
api/lovr/data/ModelData/getTriangles.lua

@@ -20,7 +20,10 @@ return {
     },
     indices = {
       type = 'table',
-      description = 'The vertex indices.  Every 3 indices describes a triangle.'
+      description = [[
+        A list of numbers representing how to connect the vertices into triangles.  Each number is
+        a 1-based index into the `vertices` table, and every 3 indices form a triangle.
+      ]]
     }
   },
   variants = {

+ 4 - 1
api/lovr/graphics/Model/getTriangles.lua

@@ -21,7 +21,10 @@ return {
     },
     indices = {
       type = 'table',
-      description = 'The vertex indices.  Every 3 indices describes a triangle.'
+      description = [[
+        A list of numbers representing how to connect the vertices into triangles.  Each number is
+        a 1-based index into the `vertices` table, and every 3 indices form a triangle.
+      ]]
     }
   },
   variants = {