Animation

D class that wraps IMG_Animation (from SDL_image 2.6) storing multiple dsdl2.Surfaces of an animation

Constructors

this
this(IMG_Animation* imgAnimation, bool isOwner, void* userRef)

Constructs a dsdl2.image.Animation from a vanilla IMG_Animation* from bindbc-sdl

Destructor

~this
~this()
Undocumented in source.

Members

Functions

count
size_t count()

Gets the frame count of the dsdl2.image.Animation

delays
const(uint[]) delays()

Gets an array of delay per frame of the dsdl2.image.Animation

frames
const(Surface[]) frames()

Gets an array of dsdl2.Surface frames of the dsdl2.image.Animation

height
uint height()

Gets the height of the dsdl2.image.Animation in pixels

opEquals
bool opEquals(Animation rhs)

Equality operator overload

size
uint[2] size()

Gets the size of the dsdl2.image.Animation in pixels

toHash
hash_t toHash()

Gets the hash of the dsdl2.image.Animation

toString
string toString()

Formats the dsdl2.image.Animation into its construction representation: "dsdl2.image.Animation(<imgAnimation>)"

width
uint width()

Gets the width of the dsdl2.image.Animation in pixels

Variables

imgAnimation
IMG_Animation* imgAnimation;

Internal IMG_Animation pointer

Meta