aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPieter-Jan Briers2018-05-12 16:53:45 +0200
committerPieter-Jan Briers2018-05-14 19:11:41 +0200
commit622a754584d2b9442aee3d5c3835556451225262 (patch)
treeb5ea9e05c90b43b4a50aa477a8e3fce71d5ebca8 /doc
parent81b1d3c846de263cf843e9e0e9d7c0c0a94f65c8 (diff)
downloadgodot-622a754584d2b9442aee3d5c3835556451225262.tar.gz
godot-622a754584d2b9442aee3d5c3835556451225262.tar.zst
godot-622a754584d2b9442aee3d5c3835556451225262.zip
ImageTexture.load returns an error code.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Image.xml2
-rw-r--r--doc/classes/ImageTexture.xml4
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index ca2d519e8..760b0c6bd 100644
--- a/doc/classes/Image.xml
+++ b/doc/classes/Image.xml
@@ -338,6 +338,7 @@
<argument index="0" name="buffer" type="PoolByteArray">
</argument>
<description>
+ Loads an image from the binary contents of a JPEG file.
</description>
</method>
<method name="load_png_from_buffer">
@@ -346,6 +347,7 @@
<argument index="0" name="buffer" type="PoolByteArray">
</argument>
<description>
+ Loads an image from the binary contents of a PNG file.
</description>
</method>
<method name="lock">
diff --git a/doc/classes/ImageTexture.xml b/doc/classes/ImageTexture.xml
index 9a5937299..0bff3317d 100644
--- a/doc/classes/ImageTexture.xml
+++ b/doc/classes/ImageTexture.xml
@@ -47,12 +47,12 @@
</description>
</method>
<method name="load">
- <return type="void">
+ <return type="int" enum="Error">
</return>
<argument index="0" name="path" type="String">
</argument>
<description>
- Load an [code]ImageTexture[/code].
+ Load an [code]ImageTexture[/code] from a file path.
</description>
</method>
<method name="set_data">