VEGO-Engine  0.1
Loading...
Searching...
No Matches
SpriteComponent Class Reference
Inheritance diagram for SpriteComponent:
[legend]
Collaboration diagram for SpriteComponent:
[legend]

Public Member Functions

 SpriteComponent (const char *path)
 
 SpriteComponent (const char *path, bool isAnimated)
 
void setTexture (const char *path)
 
void init () override
 
void update () override
 
void draw () override
 
void playAnimation (AnimationType type)
 
void setDirection (Direction direction)
 

Public Attributes

int animationIndex = 0
 
std::map< AnimationType, std::unique_ptr< Animation > > animations
 
- Public Attributes inherited from Component
Entityentity
 

Member Function Documentation

◆ draw()

void SpriteComponent::draw ( )
overridevirtual

Reimplemented from Component.

◆ init()

void SpriteComponent::init ( )
overridevirtual

Reimplemented from Component.

◆ update()

void SpriteComponent::update ( )
overridevirtual

Reimplemented from Component.


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