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

Public Member Functions

 Sprite (Vector2 offset, float rotation, Vector2 scale, Texture2D diffuse, Texture2D? normal, Texture2D? roughness, int layer=0, int material=0, bool isShadowCaster=true, bool isLit=true)
 
 Sprite (float rotation, Vector2 scale, Texture2D diffuse, Texture2D? normal, Texture2D? roughness, int layer=0, int material=0, bool isShadowCaster=true, bool isLit=true)
 
Vector2 getPosition ()
 
void setScale (Vector2 scale)
 
virtual void draw (SpriteBatch spriteBatch, int textureIndex)
 
- 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
 
Vector2 offsetToCenter
 
Point size
 
float rotation = 0
 
bool isShadowCaster
 
bool isLit = true
 
int material = 0
 
int layer = 0
 

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.Sprite.OnDestroy ( )
inlineprotectedvirtual

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnStart()

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

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnUpdate()

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

Reimplemented from GREngine.Core.System.Behaviour.


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