2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2017-11-15 18:37:54 +01:00
<class name= "OccluderPolygon2D" inherits= "Resource" category= "Core" version= "3.0-alpha" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-10-29 18:19:38 +01:00
Defines a 2D polygon for LightOccluder2D.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-10-29 18:19:38 +01:00
Editor facility that helps you draw a 2D polygon used as resource for [LightOccluder2D].
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "get_cull_mode" qualifiers= "const" >
<return type= "int" enum= "OccluderPolygon2D.CullMode" >
</return>
<description >
</description>
</method>
<method name= "get_polygon" qualifiers= "const" >
<return type= "PoolVector2Array" >
</return>
<description >
</description>
</method>
<method name= "is_closed" qualifiers= "const" >
<return type= "bool" >
</return>
<description >
</description>
</method>
<method name= "set_closed" >
<return type= "void" >
</return>
<argument index= "0" name= "closed" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "set_cull_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "cull_mode" type= "int" enum= "OccluderPolygon2D.CullMode" >
</argument>
<description >
</description>
</method>
<method name= "set_polygon" >
<return type= "void" >
</return>
<argument index= "0" name= "polygon" type= "PoolVector2Array" >
</argument>
<description >
</description>
</method>
</methods>
<members >
2017-09-13 08:49:40 +02:00
<member name= "closed" type= "bool" setter= "set_closed" getter= "is_closed" >
2017-10-29 18:19:38 +01:00
If [code]true[/code] closes the polygon. A closed OccluderPolygon2D occludes the light coming from any direction. An opened OccluderPolygon2D occludes the light only at its outline's direction. Default value [code]true[/code].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "cull_mode" type= "int" setter= "set_cull_mode" getter= "get_cull_mode" enum= "OccluderPolygon2D.CullMode" >
2017-10-29 18:19:38 +01:00
Set the direction of the occlusion culling when not [code]CULL_DISABLED[/code]. Default value [code]DISABLED[/code].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "polygon" type= "PoolVector2Array" setter= "set_polygon" getter= "get_polygon" >
2017-10-29 18:19:38 +01:00
A [Vector2] array with the index for polygon's vertices positions.
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
<constant name= "CULL_DISABLED" value= "0" >
2017-10-29 18:19:38 +01:00
Culling mode for the occlusion. Disabled means no culling. See [member cull_mode].
2017-09-12 22:42:36 +02:00
</constant>
<constant name= "CULL_CLOCKWISE" value= "1" >
2017-10-29 18:19:38 +01:00
Culling mode for the occlusion. Sets the culling to be in clockwise direction. See [member cull_mode].
2017-09-12 22:42:36 +02:00
</constant>
<constant name= "CULL_COUNTER_CLOCKWISE" value= "2" >
2017-10-29 18:19:38 +01:00
Culling mode for the occlusion. Sets the culling to be in counter clockwise direction. See [member cull_mode].
2017-09-12 22:42:36 +02:00
</constant>
</constants>
</class>