Browse Source

Canvas:newImage clarifies format;

bjorn 3 years ago
parent
commit
0cfe3e962d
2 changed files with 5 additions and 1 deletions
  1. 2 1
      api/init.lua
  2. 3 0
      api/lovr/graphics/Canvas/newImage.lua

+ 2 - 1
api/init.lua

@@ -11458,7 +11458,8 @@ return {
                     }
                   }
                 }
-              }
+              },
+              notes = "The Image will have the same pixel format as the Texture that is read from."
             },
             {
               name = "renderTo",

+ 3 - 0
api/lovr/graphics/Canvas/newImage.lua

@@ -18,6 +18,9 @@ return {
       description = 'The new Image.'
     }
   },
+  notes = [[
+    The Image will have the same pixel format as the Texture that is read from.
+  ]],
   related = {
     'lovr.data.newImage',
     'Image'