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

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)
 

Detailed Description

Represents a single frame in an animation (DEPRECATED - use SpritesheetInfo + frame ranges)

Definition at line 155 of file AnimationTypes.h.

Constructor & Destructor Documentation

◆ AnimationFrame()

Olympe::AnimationFrame::AnimationFrame ( )
inline

Definition at line 162 of file AnimationTypes.h.

Member Data Documentation

◆ duration

float Olympe::AnimationFrame::duration

Duration of this frame in seconds.

Definition at line 158 of file AnimationTypes.h.

Referenced by AnimationSystem::UpdateEntity().

◆ eventName

std::string Olympe::AnimationFrame::eventName

Optional event triggered when this frame starts (empty if none)

Definition at line 160 of file AnimationTypes.h.

◆ hotSpot

SDL_FPoint Olympe::AnimationFrame::hotSpot

Render offset (pivot point)

Definition at line 159 of file AnimationTypes.h.

Referenced by AnimationSystem::UpdateEntity().

◆ srcRect

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


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