dEngine
Simple 2D C++ game engine
Public Member Functions | Public Attributes | List of all members
dengine::Animation Class Reference

Animation from a spritesheet. More...

#include <SpriteSheet.h>

Public Member Functions

 Animation ()
 
 Animation (SDL_Rect rect, int frames)
 

Public Attributes

SDL_Rect rect
 
int frames
 

Detailed Description

Animation from a spritesheet.

An animation contains information about a specific animation from a spritesheet such as where the images are, and how many frames are in the animation

See also
SpriteSheet

Constructor & Destructor Documentation

◆ Animation() [1/2]

dengine::Animation::Animation ( )
inline

◆ Animation() [2/2]

dengine::Animation::Animation ( SDL_Rect  rect,
int  frames 
)
inline

Member Data Documentation

◆ frames

int dengine::Animation::frames

Referenced by Animation().

◆ rect

SDL_Rect dengine::Animation::rect