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
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(OccluderPolygon2D other)
opEquals
bool opEquals(typeof(null) n)
setClosed
void setClosed(bool closed)
setCullMode
void setCullMode(long cull_mode)
setPolygon
void setPolygon(PoolVector2Array polygon)
toHash
size_t toHash()

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.

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

The culling mode to use.

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

A Vector2 array with the index for polygon's vertices positions. Note: The returned value is a copy of the underlying array, rather than a reference.

Static functions

_new
OccluderPolygon2D _new()

Construct a new instance of OccluderPolygon2D. Note: use memnew!OccluderPolygon2D instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
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
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(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