![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Represents a single frame in an animation (DEPRECATED - use SpritesheetInfo + frame ranges) More...
#include <AnimationTypes.h>
Public Member Functions | |
| AnimationFrame () | |
Public Attributes | |
| SDL_FRect | srcRect |
| Source rectangle in spritesheet (x, y, w, h) | |
| float | duration |
| Duration of this frame in seconds. | |
| SDL_FPoint | hotSpot |
| Render offset (pivot point) | |
| std::string | eventName |
| Optional event triggered when this frame starts (empty if none) | |
Represents a single frame in an animation (DEPRECATED - use SpritesheetInfo + frame ranges)
Definition at line 155 of file AnimationTypes.h.
|
inline |
Definition at line 162 of file AnimationTypes.h.
| float Olympe::AnimationFrame::duration |
Duration of this frame in seconds.
Definition at line 158 of file AnimationTypes.h.
Referenced by AnimationSystem::UpdateEntity().
| std::string Olympe::AnimationFrame::eventName |
Optional event triggered when this frame starts (empty if none)
Definition at line 160 of file AnimationTypes.h.
| SDL_FPoint Olympe::AnimationFrame::hotSpot |
Render offset (pivot point)
Definition at line 159 of file AnimationTypes.h.
Referenced by AnimationSystem::UpdateEntity().
| SDL_FRect Olympe::AnimationFrame::srcRect |
Source rectangle in spritesheet (x, y, w, h)
Definition at line 157 of file AnimationTypes.h.
Referenced by AnimationSystem::UpdateEntity().