Browse Source

Canvas:newImage clarifies its format;

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

+ 2 - 1
api/init.lua

@@ -11439,7 +11439,8 @@ return {
                     }
                   }
                 }
-              }
+              },
+              notes = "The Image will always have the `rgba` format."
             },
             {
               name = "renderTo",

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

@@ -18,6 +18,7 @@ return {
       description = 'The new Image.'
     }
   },
+  notes = 'The Image will always have the `rgba` format.',
   related = {
     'lovr.data.newImage',
     'Image'