Class Animation

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

class Animation ;

Constructors

NameDescription
this (imgAnimation, isOwner, userRef) Constructs a Animation from a vanilla IMG_Animation* from bindbc-sdl

Fields

NameTypeDescription
imgAnimation sdl_image.IMG_Animation*Internal IMG_Animation pointer

Properties

NameTypeDescription
count[get] ulongGets the frame count of the Animation
delays[get] const(uint[])Gets an array of delay per frame of the Animation
frames[get] const(Surface[])Gets an array of dsdl2.Surface frames of the Animation
height[get] uintGets the height of the Animation in pixels
size[get] uint[2]Gets the size of the Animation in pixels
width[get] uintGets the width of the Animation in pixels

Methods

NameDescription
opEquals (rhs) Equality operator overload
toHash () Gets the hash of the Animation
toString () Formats the Animation into its construction representation: "dsdl2.image.Animation(<imgAnimation>)"