bjorn 4 years ago
parent
commit
f7b1ad5aa7
2 changed files with 9 additions and 9 deletions
  1. 4 4
      api/init.lua
  2. 5 5
      api/lovr/data/newImage.lua

+ 4 - 4
api/init.lua

@@ -2414,7 +2414,7 @@ return {
               },
               },
               returns = {
               returns = {
                 {
                 {
-                  name = "textureData",
+                  name = "image",
                   type = "Image",
                   type = "Image",
                   description = "The new Image."
                   description = "The new Image."
                 }
                 }
@@ -2448,7 +2448,7 @@ return {
               },
               },
               returns = {
               returns = {
                 {
                 {
-                  name = "textureData",
+                  name = "image",
                   type = "Image",
                   type = "Image",
                   description = "The new Image."
                   description = "The new Image."
                 }
                 }
@@ -2465,7 +2465,7 @@ return {
               },
               },
               returns = {
               returns = {
                 {
                 {
-                  name = "textureData",
+                  name = "image",
                   type = "Image",
                   type = "Image",
                   description = "The new Image."
                   description = "The new Image."
                 }
                 }
@@ -2488,7 +2488,7 @@ return {
               },
               },
               returns = {
               returns = {
                 {
                 {
-                  name = "textureData",
+                  name = "image",
                   type = "Image",
                   type = "Image",
                   description = "The new Image."
                   description = "The new Image."
                 }
                 }

+ 5 - 5
api/lovr/data/newImage.lua

@@ -45,7 +45,7 @@ return {
     }
     }
   },
   },
   returns = {
   returns = {
-    textureData = {
+    image = {
       type = 'Image',
       type = 'Image',
       description = 'The new Image.'
       description = 'The new Image.'
     }
     }
@@ -54,22 +54,22 @@ return {
     {
     {
       description = 'Load image data from a file.',
       description = 'Load image data from a file.',
       arguments = { 'filename', 'flip' },
       arguments = { 'filename', 'flip' },
-      returns = { 'textureData' }
+      returns = { 'image' }
     },
     },
     {
     {
       description = 'Create an Image with a given size and pixel format.',
       description = 'Create an Image with a given size and pixel format.',
       arguments = { 'width', 'height', 'format', 'data' },
       arguments = { 'width', 'height', 'format', 'data' },
-      returns = { 'textureData' }
+      returns = { 'image' }
     },
     },
     {
     {
       description = 'Clone an existing Image.',
       description = 'Clone an existing Image.',
       arguments = { 'source' },
       arguments = { 'source' },
-      returns = { 'textureData' }
+      returns = { 'image' }
     },
     },
     {
     {
       description = 'Decode image data from a Blob.',
       description = 'Decode image data from a Blob.',
       arguments = { 'blob', 'flip' },
       arguments = { 'blob', 'flip' },
-      returns = { 'textureData' }
+      returns = { 'image' }
     }
     }
   },
   },
   notes = [[
   notes = [[