tec::Animation

#include <animation.hpp>

Public Functions

Name
Animation() =default
Animation(std::shared_ptr< MD5Anim > animation)
void UpdateAnimation(const double delta)
Updates the current animation based on a change in time.
void SetAnimationFile(std::shared_ptr< MD5Anim > file)
Sets the animation file for this animation.
void Play(bool from_start)
void Stop()
void SetLoop(bool loop)
void Out(proto::Component * target)
void In(const proto::Component & source)

Friends

Name
class RenderSystem

Public Functions Documentation

function Animation

Animation() =default

function Animation

Animation(
    std::shared_ptr< MD5Anim > animation
)

function UpdateAnimation

void UpdateAnimation(
    const double delta
)

Updates the current animation based on a change in time.

Parameters:

  • float delta The change in time

Return: void

function SetAnimationFile

void SetAnimationFile(
    std::shared_ptr< MD5Anim > file
)

Sets the animation file for this animation.

Parameters:

  • std::shared_ptr file The animation file.

Return: void

This does a run for the first set of animation from frame 0 to 1 with time 0.

function Play

inline void Play(
    bool from_start
)

function Stop

inline void Stop()

function SetLoop

inline void SetLoop(
    bool loop
)

function Out

void Out(
    proto::Component * target
)

function In

void In(
    const proto::Component & source
)

Friends

friend RenderSystem

friend class RenderSystem(
    RenderSystem 
);

Updated on 2022-07-24 at 19:27:35 +0000