Browse Source

Add Texture depth functions;

bjorn 7 years ago
parent
commit
a21f2887dd

+ 12 - 0
api/lovr/graphics/Texture/getDepth.lua

@@ -0,0 +1,12 @@
+return {
+  summary = 'Get the depth of the Texture.',
+  description = 'Returns the depth of the Texture, or the number of images stored in the Texture.',
+  arguments = {},
+  returns = {
+    {
+      name = 'depth',
+      type = 'number',
+      description = 'The depth of the Texture.'
+    }
+  }
+}

+ 5 - 0
api/lovr/graphics/Texture/getDimensions.lua

@@ -12,6 +12,11 @@ return {
       name = 'height',
       type = 'number',
       description = 'The height of the Texture, in pixels.'
+    },
+    {
+      name = 'depth',
+      type = 'number',
+      description = 'The number of images stored in the Texture.'
     }
   }
 }