Browse Source

Fix texture dimension functions;

bjorn 3 years ago
parent
commit
4aa746c698

+ 6 - 0
api/init.lua

@@ -6947,6 +6947,7 @@ return {
                   returns = {
                     {
                       name = "depth",
+                      type = "number",
                       description = "The depth of the Texture."
                     }
                   }
@@ -6970,14 +6971,17 @@ return {
                   returns = {
                     {
                       name = "width",
+                      type = "number",
                       description = "The width of the Texture."
                     },
                     {
                       name = "height",
+                      type = "number",
                       description = "The height of the Texture."
                     },
                     {
                       name = "depth",
+                      type = "number",
                       description = "The depth of the Texture."
                     }
                   }
@@ -7001,6 +7005,7 @@ return {
                   returns = {
                     {
                       name = "height",
+                      type = "number",
                       description = "The height of the Texture, in pixels."
                     }
                   }
@@ -7024,6 +7029,7 @@ return {
                   returns = {
                     {
                       name = "width",
+                      type = "number",
                       description = "The width of the Texture, in pixels."
                     }
                   }

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

@@ -10,6 +10,7 @@ return {
   returns = {
     {
       name = 'depth',
+      type = 'number',
       description = 'The depth of the Texture.'
     }
   },

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

@@ -5,14 +5,17 @@ return {
   returns = {
     {
       name = 'width',
+      type = 'number',
       description = 'The width of the Texture.'
     },
     {
       name = 'height',
+      type = 'number',
       description = 'The height of the Texture.'
     },
     {
       name = 'depth',
+      type = 'number',
       description = 'The depth of the Texture.'
     }
   },

+ 1 - 0
api/lovr/graphics/Texture/getHeight.lua

@@ -5,6 +5,7 @@ return {
   returns = {
     {
       name = 'height',
+      type = 'number',
       description = 'The height of the Texture, in pixels.'
     }
   },

+ 1 - 0
api/lovr/graphics/Texture/getWidth.lua

@@ -5,6 +5,7 @@ return {
   returns = {
     {
       name = 'width',
+      type = 'number',
       description = 'The width of the Texture, in pixels.'
     }
   },