xyginext  0.2.0
Second generation of xygine game creation framework
Public Attributes | Static Public Attributes | List of all members
xy::Sprite::Animation Struct Referencefinal

Represents a single animation. More...

#include <Sprite.hpp>

Public Attributes

std::vector< char > id
 
std::vector< sf::FloatRect > frames
 
std::uint32_t loopStart = 0
 looped animations can jump to somewhere other than the beginning
 
bool looped = false
 
float framerate = 12.f
 

Static Public Attributes

static constexpr std::size_t MaxAnimationIdLength = 32
 Maximum length of animation id.
 

Detailed Description

Represents a single animation.