blob: 7bc1f74762fc485052e9e4ef14493a8040507ec4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<?xml version="1.0" encoding="UTF-8" ?>
<class name="OccluderPolygon2D" inherits="Resource" category="Core" version="3.0.alpha.custom_build">
<brief_description>
Defines a 2D polygon for LightOccluder2D.
</brief_description>
<description>
Editor facility that helps you draw a 2D polygon used as resource for [LightOccluder2D].
</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>
<member name="closed" type="bool" setter="set_closed" getter="is_closed">
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].
</member>
<member name="cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" enum="OccluderPolygon2D.CullMode">
Set the direction of the occlusion culling when not [code]CULL_DISABLED[/code]. Default value [code]DISABLED[/code].
</member>
<member name="polygon" type="PoolVector2Array" setter="set_polygon" getter="get_polygon">
A [Vector2] array with the index for polygon's vertices positions.
</member>
</members>
<constants>
<constant name="CULL_DISABLED" value="0">
Culling mode for the occlusion. Disabled means no culling. See [member cull_mode].
</constant>
<constant name="CULL_CLOCKWISE" value="1">
Culling mode for the occlusion. Sets the culling to be in clockwise direction. See [member cull_mode].
</constant>
<constant name="CULL_COUNTER_CLOCKWISE" value="2">
Culling mode for the occlusion. Sets the culling to be in counter clockwise direction. See [member cull_mode].
</constant>
</constants>
</class>
|