[DOCS] CubeMap

This commit is contained in:
Nathan Warden 2017-10-24 08:53:53 -05:00
parent 3c69a40caf
commit e0b2a74a14

View file

@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<class name="CubeMap" inherits="Resource" category="Core" version="3.0.alpha.custom_build"> <class name="CubeMap" inherits="Resource" category="Core" version="3.0.alpha.custom_build">
<brief_description> <brief_description>
A CubeMap is a 6 sided 3D texture.
</brief_description> </brief_description>
<description> <description>
A CubeMap is a 6 sided 3D texture typically used for faking reflections. It can be used to make an object look as if it's reflecting its surroundings. This usually delivers much better performance than other reflection methods.
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>
@ -19,6 +21,7 @@
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the CubeMap's height.
</description> </description>
</method> </method>
<method name="get_lossy_storage_quality" qualifiers="const"> <method name="get_lossy_storage_quality" qualifiers="const">
@ -33,6 +36,7 @@
<argument index="0" name="side" type="int" enum="CubeMap.Side"> <argument index="0" name="side" type="int" enum="CubeMap.Side">
</argument> </argument>
<description> <description>
Returns an [Image] for a side of the CubeMap using one of the [code]SIDE_*[/code] constants or an integer 0-5.
</description> </description>
</method> </method>
<method name="get_storage" qualifiers="const"> <method name="get_storage" qualifiers="const">
@ -45,6 +49,7 @@
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the CubeMap's width.
</description> </description>
</method> </method>
<method name="set_flags"> <method name="set_flags">
@ -71,6 +76,7 @@
<argument index="1" name="image" type="Image"> <argument index="1" name="image" type="Image">
</argument> </argument>
<description> <description>
Sets an [Image] for a side of the CubeMap using one of the [code]SIDE_*[/code] constants or an integer 0-5.
</description> </description>
</method> </method>
<method name="set_storage"> <method name="set_storage">
@ -84,8 +90,10 @@
</methods> </methods>
<members> <members>
<member name="lossy_storage_quality" type="float" setter="set_lossy_storage_quality" getter="get_lossy_storage_quality"> <member name="lossy_storage_quality" type="float" setter="set_lossy_storage_quality" getter="get_lossy_storage_quality">
The lossy storage quality of the CubeMap if the storage mode is set to STORAGE_COMPRESS_LOSSY.
</member> </member>
<member name="storage_mode" type="int" setter="set_storage" getter="get_storage" enum="CubeMap.Storage"> <member name="storage_mode" type="int" setter="set_storage" getter="get_storage" enum="CubeMap.Storage">
The CubeMap's storage mode. See [code]STORAGE_*[/code] constants.
</member> </member>
</members> </members>
<constants> <constants>