TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MovingAnimatorComponent Class Reference
Inheritance diagram for MovingAnimatorComponent:
Inheritance graph
[legend]
Collaboration diagram for MovingAnimatorComponent:
Collaboration graph
[legend]

Public Member Functions

void init () override
 
void update (float deltaTime) override
 
void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window) override
 
void Play (const char *animName, int reps=0)
 
void Play (const char *animName, glm::vec3 m_distance, int reps=0)
 
void resetAnimation ()
 
std::string getPlayName ()
 
void init () override
 
void update (float deltaTime) override
 
void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window) override
 
void Play (const char *animName, int reps=0)
 
void Play (const char *animName, glm::vec3 m_distance, int reps=0)
 
void resetAnimation ()
 
std::string getPlayName ()
 
- Public Member Functions inherited from BaseComponent
virtual void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
virtual std::string GetComponentName ()
 
virtual void showGUI (std::vector< BaseComponent * > otherComponents={})
 
virtual void showGUI (std::vector< BaseComponent * > otherComponents, std::vector< Entity * > otherEntities)
 

Public Attributes

TransformComponenttransform = nullptr
 also we use MovingAnimator instead of simple Animator so that entities use less memory and we use it to entities that have triggers that change their animation
 
std::string animationName = ""
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
bool modifyPosition = false
 
ComponentID id = 0u
 

Member Function Documentation

◆ draw() [1/2]

void MovingAnimatorComponent::draw ( size_t  e_index,
PlaneModelRenderer batch,
TazGraphEngine::Window window 
)
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ draw() [2/2]

void MovingAnimatorComponent::draw ( size_t  e_index,
PlaneModelRenderer batch,
TazGraphEngine::Window window 
)
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init() [1/2]

void MovingAnimatorComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ init() [2/2]

void MovingAnimatorComponent::init ( )
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update() [1/2]

void MovingAnimatorComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.

◆ update() [2/2]

void MovingAnimatorComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from BaseComponent.


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