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

A gef::sprite, Along with a name, transform, and subtexture frame. More...

#include <SpriteComponent.h>

Collaboration diagram for AnimationSystem::Sprite::SpriteComponent:

Public Member Functions

 SpriteComponent (StringId name, gef::Texture const &texture, SubTextureFrame const &subTextureFrame, std::unique_ptr< JsonResult > const &slotData)
 
void Create (gef::Texture const *texture, StringId name)
 
void SetPosition (gef::Vector2 const &newPosition)
 
void SetRotation (float rotation)
 
void SetSubTexture (std::optional< std::reference_wrapper< SubTextureFrame const > > currentFrame)
 
void Render (gef::SpriteRenderer &renderer) const
 
gef::Matrix33 GetSpriteWorldTransform () const
 
Transform2d const & GetTransform () const
 
StringId GetName () const
 
void SetParentTransform (Transform2d const &transform)
 

Detailed Description

A gef::sprite, Along with a name, transform, and subtexture frame.


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