Green Rock Engine 0
All Classes Namespaces Functions Variables
Public Member Functions | Protected Member Functions | List of all members
GREngine.Core.PebbleRenderer.AnimatedSprite Class Reference
Inheritance diagram for GREngine.Core.PebbleRenderer.AnimatedSprite:
Inheritance graph
[legend]
Collaboration diagram for GREngine.Core.PebbleRenderer.AnimatedSprite:
Collaboration graph
[legend]

Public Member Functions

 AnimatedSprite (Vector2 offset, float rotation, Vector2 scale, Texture2D diffuse, Texture2D? normal, Texture2D? roughness, int layer=0, int material=0, bool isShadowCaster=true, bool isLit=true)
 
 AnimatedSprite (float rotation, Vector2 scale, Texture2D diffuse, Texture2D? normal, Texture2D? roughness, int layer=0, int material=0, bool isShadowCaster=true, bool isLit=true)
 
override void draw (SpriteBatch spriteBatch, int textureIndex)
 
- Public Member Functions inherited from GREngine.Core.PebbleRenderer.Sprite
 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)
 
- 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)
 

Protected Member Functions

override void OnStart ()
 
override void OnUpdate (GameTime gameTime)
 
override void OnDestroy ()
 
- Protected Member Functions inherited from GREngine.Core.PebbleRenderer.Sprite
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

- Public Attributes inherited from GREngine.Core.PebbleRenderer.Sprite
Vector2 offset
 
Vector2 offsetToCenter
 
Point size
 
float rotation = 0
 
bool isShadowCaster
 
bool isLit = true
 
int material = 0
 
int layer = 0
 
- 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

◆ draw()

override void GREngine.Core.PebbleRenderer.AnimatedSprite.draw ( SpriteBatch  spriteBatch,
int  textureIndex 
)
inlinevirtual

◆ OnDestroy()

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

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnStart()

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

Reimplemented from GREngine.Core.System.Behaviour.

◆ OnUpdate()

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

Reimplemented from GREngine.Core.System.Behaviour.


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