2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-02-24 18:59:38 +01:00
<class name= "CubeMap" inherits= "Resource" category= "Core" version= "3.0.1" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-10-24 15:53:53 +02:00
A CubeMap is a 6 sided 3D texture.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-12-09 07:51:50 +01:00
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.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "get_height" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2017-12-09 07:51:50 +01:00
Returns the [code]CubeMap[/code]'s height.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_side" qualifiers= "const" >
<return type= "Image" >
</return>
<argument index= "0" name= "side" type= "int" enum= "CubeMap.Side" >
</argument>
<description >
2017-12-09 07:51:50 +01:00
Returns an [Image] for a side of the [code]CubeMap[/code] using one of the [code]SIDE_*[/code] constants or an integer 0-5.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_width" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2017-12-09 07:51:50 +01:00
Returns the [code]CubeMap[/code]'s width.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "set_side" >
<return type= "void" >
</return>
<argument index= "0" name= "side" type= "int" enum= "CubeMap.Side" >
</argument>
<argument index= "1" name= "image" type= "Image" >
</argument>
<description >
2017-12-09 07:51:50 +01:00
Sets an [Image] for a side of the [code]CubeMap[/code] using one of the [code]SIDE_*[/code] constants or an integer 0-5.
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
2017-10-22 12:56:11 +02:00
<members >
2018-01-11 23:38:35 +01:00
<member name= "flags" type= "int" setter= "set_flags" getter= "get_flags" >
The render flags for the [code]CubeMap[/code]. See the [code]FLAG_*[/code] constants for details.
</member>
2017-10-22 12:56:11 +02:00
<member name= "lossy_storage_quality" type= "float" setter= "set_lossy_storage_quality" getter= "get_lossy_storage_quality" >
2017-12-09 07:51:50 +01:00
The lossy storage quality of the [code]CubeMap[/code] if the storage mode is set to STORAGE_COMPRESS_LOSSY.
2017-10-22 12:56:11 +02:00
</member>
2017-12-10 15:10:54 +01:00
<member name= "storage_mode" type= "int" setter= "set_storage" getter= "get_storage" enum= "CubeMap.Storage" >
2017-12-09 07:51:50 +01:00
The [code]CubeMap[/code]'s storage mode. See [code]STORAGE_*[/code] constants.
2017-10-22 12:56:11 +02:00
</member>
</members>
2017-09-12 22:42:36 +02:00
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "STORAGE_RAW" value= "0" enum= "Storage" >
2017-12-09 07:51:50 +01:00
Store the [code]CubeMap[/code] without any compression.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "STORAGE_COMPRESS_LOSSY" value= "1" enum= "Storage" >
2017-12-09 07:51:50 +01:00
Store the [code]CubeMap[/code] with strong compression that reduces image quality.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "STORAGE_COMPRESS_LOSSLESS" value= "2" enum= "Storage" >
2017-12-09 07:51:50 +01:00
Store the [code]CubeMap[/code] with moderate compression that doesn't reduce image quality.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_LEFT" value= "0" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the left face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_RIGHT" value= "1" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the right face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_BOTTOM" value= "2" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the bottom face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_TOP" value= "3" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the top face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_FRONT" value= "4" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the front face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SIDE_BACK" value= "5" enum= "Side" >
2017-12-09 07:51:50 +01:00
Identifier for the back face of the [code]CubeMap[/code].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FLAG_MIPMAPS" value= "1" enum= "Flags" >
2017-12-09 07:51:50 +01:00
Generate mipmaps, to enable smooth zooming out of the texture.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FLAG_REPEAT" value= "2" enum= "Flags" >
2017-12-09 07:51:50 +01:00
Repeat (instead of clamp to edge).
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FLAG_FILTER" value= "4" enum= "Flags" >
2017-12-09 07:51:50 +01:00
Turn on magnifying filter, to enable smooth zooming in of the texture.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FLAGS_DEFAULT" value= "7" enum= "Flags" >
2017-12-09 07:51:50 +01:00
Default flags. Generate mipmaps, repeat, and filter are enabled.
2017-09-12 22:42:36 +02:00
</constant>
</constants>
</class>