Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Olympe::SpritesheetInfo Struct Reference

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.
 

Detailed Description

Metadata for a single spritesheet within an animation bank.

Definition at line 133 of file AnimationTypes.h.

Constructor & Destructor Documentation

◆ SpritesheetInfo()

Olympe::SpritesheetInfo::SpritesheetInfo ( )
default

Member Data Documentation

◆ columns

int Olympe::SpritesheetInfo::columns = 0

Number of columns in spritesheet.

Definition at line 141 of file AnimationTypes.h.

◆ description

std::string Olympe::SpritesheetInfo::description

Definition at line 137 of file AnimationTypes.h.

◆ frameHeight

int Olympe::SpritesheetInfo::frameHeight = 0

Height of each frame in pixels.

Definition at line 140 of file AnimationTypes.h.

◆ frameWidth

int Olympe::SpritesheetInfo::frameWidth = 0

Width of each frame in pixels.

Definition at line 139 of file AnimationTypes.h.

◆ hotspot

SDL_FPoint Olympe::SpritesheetInfo::hotspot = {0.0f, 0.0f}

Default hotspot/pivot point.

Definition at line 147 of file AnimationTypes.h.

◆ id

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().

◆ margin

int Olympe::SpritesheetInfo::margin = 0

Margin around spritesheet edges.

Definition at line 145 of file AnimationTypes.h.

◆ path

std::string Olympe::SpritesheetInfo::path

Relative path to image.

Definition at line 136 of file AnimationTypes.h.

◆ rows

int Olympe::SpritesheetInfo::rows = 0

Number of rows in spritesheet.

Definition at line 142 of file AnimationTypes.h.

◆ spacing

int Olympe::SpritesheetInfo::spacing = 0

Spacing between frames in pixels.

Definition at line 144 of file AnimationTypes.h.

◆ totalFrames

int Olympe::SpritesheetInfo::totalFrames = 0

Total number of frames available.

Definition at line 143 of file AnimationTypes.h.


The documentation for this struct was generated from the following file: