|
MOUNTAIN_API | Sprite (std::string spriteName) |
|
MOUNTAIN_API | Sprite (std::string spriteName, float_t frameDuration) |
|
MOUNTAIN_API void | SetupTextures () |
| Initialize the Texture vector. More...
|
|
MOUNTAIN_API const Pointer< Texture > & | Get () |
|
MOUNTAIN_API const std::string & | GetName () const |
|
MOUNTAIN_API void | SetName (const std::string &name) |
|
MOUNTAIN_API const List< Pointer< Texture > > & | GetTextures () const |
|
MOUNTAIN_API size_t | GetCurrentIndex () const |
|
MOUNTAIN_API float_t | GetFrameDuration () const |
|
MOUNTAIN_API void | SetFrameDuration (float_t frameDuration) |
|
MOUNTAIN_API float_t | GetUpdateTimer () const |
|
virtual void | Added () |
| Called when the component is added to an Entity.
|
|
virtual void | Removed () |
| Called when the component is removed from an Entity.
|
|
virtual void | Render () |
| Renders the component.
|
|
virtual void | DebugRender () |
|
const Entity * | GetEntity () const |
| Get the Entity on which this Component is attached.
|
|
Entity * | GetEntity () |
| Get the Entity on which this Component is attached.
|
|
|
void | Update () override |
| Updates the component.
|
|
Definition at line 12 of file sprite.hpp.
◆ SetupTextures()
MOUNTAIN_API void Mountain::Sprite::SetupTextures |
( |
| ) |
|
Initialize the Texture vector.
- Warning
- This is a quite heavy operation as it loops over all loaded textures to find the right ones and is already called in the constructor. Consider using this only when necessary, e.g. after using SetName()
The documentation for this class was generated from the following file:
- Mountain/include/Mountain/scene/component/sprite.hpp