Browse Source

Add index16, index32 FieldTypes;

bjorn 2 years ago
parent
commit
69b096b7fa
2 changed files with 16 additions and 0 deletions
  1. 8 0
      api/init.lua
  2. 8 0
      api/lovr/graphics/FieldType.lua

+ 8 - 0
api/init.lua

@@ -8899,6 +8899,14 @@ return {
             {
             {
               name = "mat4",
               name = "mat4",
               description = "A 4x4 matrix containing sixteen 32-bit floats."
               description = "A 4x4 matrix containing sixteen 32-bit floats."
+            },
+            {
+              name = "index16",
+              description = "Like u16, but 1-indexed."
+            },
+            {
+              name = "index32",
+              description = "Like u32, but 1-indexed."
             }
             }
           },
           },
           related = {
           related = {

+ 8 - 0
api/lovr/graphics/FieldType.lua

@@ -147,6 +147,14 @@ return {
       name = 'mat4',
       name = 'mat4',
       description = 'A 4x4 matrix containing sixteen 32-bit floats.'
       description = 'A 4x4 matrix containing sixteen 32-bit floats.'
     },
     },
+    {
+      name = 'index16',
+      description = 'Like u16, but 1-indexed.'
+    },
+    {
+      name = 'index32',
+      description = 'Like u32, but 1-indexed.'
+    }
   },
   },
   notes = [[
   notes = [[
     In addition to these values, the following aliases can be used:
     In addition to these values, the following aliases can be used: