Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AnimationSystem::Sprite::AtlasAnimationSprite Class Reference

An animated sprite, animated using spritesheet animation. More...

#include <AtlasAnimationSprite.h>

Inheritance diagram for AnimationSystem::Sprite::AtlasAnimationSprite:
Collaboration diagram for AnimationSystem::Sprite::AtlasAnimationSprite:

Public Member Functions

PureResult Create (StringId name, string const &filePath, gef::Vector2 const &spritePos, gef::Platform const &platform) override
 
void UpdateAnimation (float frameTime) override
 
void Render (gef::SpriteRenderer &renderer) const override
 
ISpriteAnimatorAnimator () override
 
Transform2dGetTransform () override
 
- Public Member Functions inherited from AnimationSystem::IAnimatedSprite
virtual PureResult Create (gef::StringId name, string const &filePath, gef::Vector2 const &spritePos, gef::Platform const &platform)=0
 
ValueResult< unique_ptr< gef::Texture > > LoadTexture (string const &name, gef::Platform const &platform) const
 
virtual void Render (gef::SpriteRenderer &spriteRenderer) const =0
 
virtual void UpdateAnimation (float frameTime)=0
 
virtual Sprite::ISpriteAnimatorAnimator ()=0
 
virtual Transform2dGetTransform ()=0
 

Detailed Description

An animated sprite, animated using spritesheet animation.

Member Function Documentation

◆ Animator()

ISpriteAnimator & AnimationSystem::Sprite::AtlasAnimationSprite::Animator ( )
inlineoverridevirtual
Returns
This object's animator

Implements AnimationSystem::IAnimatedSprite.

◆ GetTransform()

Transform2d & AnimationSystem::Sprite::AtlasAnimationSprite::GetTransform ( )
inlineoverridevirtual

◆ Render()

void AnimationSystem::Sprite::AtlasAnimationSprite::Render ( gef::SpriteRenderer &  renderer) const
overridevirtual

◆ UpdateAnimation()

void AnimationSystem::Sprite::AtlasAnimationSprite::UpdateAnimation ( float  frameTime)
overridevirtual

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