SDL Wiki
(This function is part of SDL_image, a separate library from SDL.)

IMG_Animation

A struct representing a series of frames (SDL_Surface) in an animation.

Syntax

IMG_Animation * animation = IMG_LoadAnimation("my_gif.gif");

Function Parameters

w An integer that represents the width, in pixels, of the animation.
h An integer that represents the height, in pixels, of the animation.
count An integer that represents the number of frames in the animation.
frames A pointer to an array of SDL_Surface pointers with length of count.
delays A pointer to an array of integers that represent the time in milliseconds each frame should be displayed. Has length of count.

Remarks

Currently only animated GIFs are supported.

Version

This struct is available since SDL_image ?.?.?.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.