OccluderPolygon2D

Defines a 2D polygon for LightOccluder2D.

Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
CullMode
enum CullMode

Functions

getCullMode
OccluderPolygon2D.CullMode getCullMode()
getPolygon
PoolVector2Array getPolygon()
isClosed
bool isClosed()
opAssign
OccluderPolygon2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(OccluderPolygon2D other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setClosed
void setClosed(bool closed)
setCullMode
void setCullMode(long cull_mode)
setPolygon
void setPolygon(PoolVector2Array polygon)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

closed
bool closed [@property getter]
bool closed [@property setter]

If true 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 true.

cullMode
OccluderPolygon2D.CullMode cullMode [@property getter]
long cullMode [@property setter]

Set the direction of the occlusion culling when not CULL_DISABLED. Default value DISABLED.

polygon
PoolVector2Array polygon [@property getter]
PoolVector2Array polygon [@property setter]

A Vector2 array with the index for polygon's vertices positions.

Static functions

_new
OccluderPolygon2D _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta