Green Rock Engine 0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
GREngine.Core.PebbleRenderer.Light Class Reference
Inheritance diagram for GREngine.Core.PebbleRenderer.Light:
Inheritance graph
[legend]
Collaboration diagram for GREngine.Core.PebbleRenderer.Light:
Collaboration graph
[legend]

Public Member Functions

 Light (Vector2 offset, Vector3 color, bool isShadowCasting=false, float rotation=0, float arc=1)
 
 Light (Vector3 color, bool isShadowCasting=false, float rotation=0, float arc=1)
 
Vector2 getPosition ()
 
void setRotation (float rotation)
 
float getRotation ()
 
void setArc (float arc)
 
Vector3 getLightDir ()
 
- Public Member Functions inherited from GREngine.Core.System.Behaviour
override void SetEnabled (bool state)
 
int CompareTo (Behaviour? other)
 
- Public Member Functions inherited from GREngine.Core.System.AbstractGameObject
delegate void EnabledChanged (bool state)
 
bool HasTag (string tag)
 

Public Attributes

Vector2 offset
 
Vector3 color
 
bool isShadowCasting
 

Protected Member Functions

override void OnStart ()
 
override void OnUpdate (GameTime gameTime)
 
override void OnDestroy ()
 
- Protected Member Functions inherited from GREngine.Core.System.Behaviour
virtual void OnAwake ()
 
virtual void OnFixedUpdate (GameTime gameTime)
 

Additional Inherited Members

- Protected Attributes inherited from GREngine.Core.System.Behaviour
readonly uint InstanceID
 
- Protected Attributes inherited from GREngine.Core.System.AbstractGameObject
readonly HashSet< string > Tags = new()
 
- Properties inherited from GREngine.Core.System.Behaviour
Game Game [get, set]
 
NodeNode [get, set]
 
- Properties inherited from GREngine.Core.System.AbstractGameObject
bool Enabled = true [get]
 
string Name = "Generic Object" [get, protected set]
 
- Events inherited from GREngine.Core.System.AbstractGameObject
EnabledChanged? EnabledChangedEvent
 

Member Function Documentation

◆ OnDestroy()

override void GREngine.Core.PebbleRenderer.Light.OnDestroy ( )
inlineprotectedvirtual

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnStart()

override void GREngine.Core.PebbleRenderer.Light.OnStart ( )
inlineprotectedvirtual

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnUpdate()

override void GREngine.Core.PebbleRenderer.Light.OnUpdate ( GameTime  gameTime)
inlineprotectedvirtual

Reimplemented from GREngine.Core.System.Behaviour.


The documentation for this class was generated from the following file: