Class Animation
D class that wraps IMG_Animation
(from SDL_image 2.6) storing multiple dsdl
s of an animation
class Animation
;
Constructors
Name | Description |
---|---|
this
(imgAnimation, isOwner, userRef)
|
Constructs a Animation from a vanilla IMG_Animation* from bindbc-sdl
|
Fields
Name | Type | Description |
---|---|---|
imgAnimation
|
sdl_image | Internal IMG_Animation pointer
|
Properties
Name | Type | Description |
---|---|---|
count [get]
|
ulong | Gets 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 dsdl frames of the Animation
|
height [get]
|
uint | Gets the height of the Animation in pixels
|
size [get]
|
uint[2] | Gets the size of the Animation in pixels
|
width [get]
|
uint | Gets the width of the Animation in pixels
|
Methods
Name | Description |
---|---|
opEquals
(rhs)
|
Equality operator overload |
toHash
()
|
Gets the hash of the Animation
|
toString
()
|
Formats the Animation into its construction representation:
"dsdl.image.Animation(<imgAnimation>)"
|