Anim 0.1
|
A gef::sprite, Along with a name, transform, and subtexture frame. More...
#include <SpriteComponent.h>
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) |
A gef::sprite, Along with a name, transform, and subtexture frame.