浏览代码

Canvas:newImage clarifies its format;

bjorn 3 年之前
父节点
当前提交
7e5d6ef3d6
共有 2 个文件被更改,包括 3 次插入1 次删除
  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'