Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
AnimationData Struct Reference

Configuration data for creating an animation. More...

#include <animation.h>

Public Attributes

char * spritesheetPath
 The path to the spriteSheet.
 
Vec2 frameSize
 The size of each frame in the sprite sheet.
 
int frameCount
 Number of frames inside the sprite sheet.
 
AnimationClipData clips [15]
 Array of different animation clips.
 
Vec2 spriteSize
 The size of the rendered sprite.
 
char * defaultClip
 The default clip to play.
 
bool playOnStart
 Whether to play the animation on creation.
 

Detailed Description

Configuration data for creating an animation.

Member Data Documentation

◆ clips

AnimationClipData AnimationData::clips[15]

Array of different animation clips.

◆ defaultClip

char* AnimationData::defaultClip

The default clip to play.

◆ frameCount

int AnimationData::frameCount

Number of frames inside the sprite sheet.

◆ frameSize

Vec2 AnimationData::frameSize

The size of each frame in the sprite sheet.

◆ playOnStart

bool AnimationData::playOnStart

Whether to play the animation on creation.

◆ spritesheetPath

char* AnimationData::spritesheetPath

The path to the spriteSheet.

◆ spriteSize

Vec2 AnimationData::spriteSize

The size of the rendered sprite.


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