0e3d625737
Lots of internal API changes and some docstrings were lost in the conversion. I manually salvaged many of them but for all the rendering-related ones, an additional pass is needed. Added missing enum bindings in BaseMaterial3D and VisualServer.
51 lines
1.3 KiB
XML
51 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="ImageTexture" inherits="Texture2D" version="4.0">
|
|
<brief_description>
|
|
A [Texture2D] based on an [Image].
|
|
</brief_description>
|
|
<description>
|
|
A [Texture2D] based on an [Image]. Can be created from an [Image] with [method create_from_image].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="create_from_image">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="image" type="Image">
|
|
</argument>
|
|
<description>
|
|
Create a new [ImageTexture] from an [Image].
|
|
</description>
|
|
</method>
|
|
<method name="get_format" qualifiers="const">
|
|
<return type="int" enum="Image.Format">
|
|
</return>
|
|
<description>
|
|
Returns the format of the [ImageTexture], one of [enum Image.Format].
|
|
</description>
|
|
</method>
|
|
<method name="set_size_override">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="size" type="Vector2">
|
|
</argument>
|
|
<description>
|
|
Resizes the [ImageTexture] to the specified dimensions.
|
|
</description>
|
|
</method>
|
|
<method name="update">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="image" type="Image">
|
|
</argument>
|
|
<argument index="1" name="immediate" type="bool" default="false">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
</constants>
|
|
</class>
|