![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Metadata for a single spritesheet within an animation bank. More...
#include <AnimationTypes.h>
Public Member Functions | |
| SpritesheetInfo ()=default | |
Public Attributes | |
| std::string | id |
| Unique identifier (e.g., "thesee_idle") | |
| std::string | path |
| Relative path to image. | |
| std::string | description |
| int | frameWidth = 0 |
| Width of each frame in pixels. | |
| int | frameHeight = 0 |
| Height of each frame in pixels. | |
| int | columns = 0 |
| Number of columns in spritesheet. | |
| int | rows = 0 |
| Number of rows in spritesheet. | |
| int | totalFrames = 0 |
| Total number of frames available. | |
| int | spacing = 0 |
| Spacing between frames in pixels. | |
| int | margin = 0 |
| Margin around spritesheet edges. | |
| SDL_FPoint | hotspot = {0.0f, 0.0f} |
| Default hotspot/pivot point. | |
Metadata for a single spritesheet within an animation bank.
Definition at line 133 of file AnimationTypes.h.
|
default |
| int Olympe::SpritesheetInfo::columns = 0 |
Number of columns in spritesheet.
Definition at line 141 of file AnimationTypes.h.
| std::string Olympe::SpritesheetInfo::description |
Definition at line 137 of file AnimationTypes.h.
| int Olympe::SpritesheetInfo::frameHeight = 0 |
Height of each frame in pixels.
Definition at line 140 of file AnimationTypes.h.
| int Olympe::SpritesheetInfo::frameWidth = 0 |
Width of each frame in pixels.
Definition at line 139 of file AnimationTypes.h.
| SDL_FPoint Olympe::SpritesheetInfo::hotspot = {0.0f, 0.0f} |
Default hotspot/pivot point.
Definition at line 147 of file AnimationTypes.h.
| std::string Olympe::SpritesheetInfo::id |
Unique identifier (e.g., "thesee_idle")
Definition at line 135 of file AnimationTypes.h.
Referenced by Olympe::AnimationEditorWindow::AddSpritesheet(), and Olympe::AnimationEditorWindow::ImportBankJSON().
| int Olympe::SpritesheetInfo::margin = 0 |
Margin around spritesheet edges.
Definition at line 145 of file AnimationTypes.h.
| std::string Olympe::SpritesheetInfo::path |
Relative path to image.
Definition at line 136 of file AnimationTypes.h.
| int Olympe::SpritesheetInfo::rows = 0 |
Number of rows in spritesheet.
Definition at line 142 of file AnimationTypes.h.
| int Olympe::SpritesheetInfo::spacing = 0 |
Spacing between frames in pixels.
Definition at line 144 of file AnimationTypes.h.
| int Olympe::SpritesheetInfo::totalFrames = 0 |
Total number of frames available.
Definition at line 143 of file AnimationTypes.h.