PAlib
Functions
Gif functions

Functions

static u16 PA_GetGifWidth (void *gif)
 Get a Gif's width in pixels.
 
static u16 PA_GetGifHeight (void *gif)
 Get a Gif's height in pixels.
 
static void PA_LoadGifXY (u8 screen, s16 x, s16 y, void *gif)
 Load a Gif on a 16 bit background... Don't forget to Init the background !
 
static void PA_LoadGif (u8 screen, void *gif)
 Load a Gif on a 16 bit background... Don't forget to Init the background !
 
static void PA_GifAnimSpeed (float speed)
 Set the gif's speed.
 
static void PA_GifAnimStop (void)
 Stop a Gif animation.
 
static void PA_GifAnimPause (void)
 Pause a Gif animation.
 
static void PA_GifSetStartFrame (s32 StartFrame)
 Set the Gif's starting frame number.
 
static void PA_GifSetEndFrame (s32 EndFrame)
 Set the Gif's ending frame number.
 
static s32 PA_GifGetFrame (void)
 Return's the gif's current frame.
 

Detailed Description

Manages everything about gif files.

Function Documentation

◆ PA_GetGifWidth()

static inline u16 PA_GetGifWidth ( void *  gif)
inlinestatic

Get a Gif's width in pixels.

Parameters
gifGif image...

◆ PA_GetGifHeight()

static inline u16 PA_GetGifHeight ( void *  gif)
inlinestatic

Get a Gif's height in pixels.

Parameters
gifGif image...

◆ PA_LoadGifXY()

static inline void PA_LoadGifXY ( u8  screen,
s16  x,
s16  y,
void *  gif 
)
inlinestatic

Load a Gif on a 16 bit background... Don't forget to Init the background !

Parameters
screenChose de screen (0 or 1)
xX position on the screen
yY position on the screen
gifGif image...

◆ PA_LoadGif()

static inline void PA_LoadGif ( u8  screen,
void *  gif 
)
inlinestatic

Load a Gif on a 16 bit background... Don't forget to Init the background !

Parameters
screenChose de screen (0 or 1)
gifGif image...

◆ PA_GifAnimSpeed()

static inline void PA_GifAnimSpeed ( float  speed)
inlinestatic

Set the gif's speed.

Parameters
speed1 for normal, 2 for 2x, 0.5 for half speed...

◆ PA_GifAnimStop()

static inline void PA_GifAnimStop ( void  )
inlinestatic

Stop a Gif animation.

Unpause a Gif animation.

◆ PA_GifSetStartFrame()

static inline void PA_GifSetStartFrame ( s32  StartFrame)
inlinestatic

Set the Gif's starting frame number.

Parameters
StartFrameStarting frame... (0 to start from beginning)

◆ PA_GifSetEndFrame()

static inline void PA_GifSetEndFrame ( s32  EndFrame)
inlinestatic

Set the Gif's ending frame number.

Parameters
EndFrameEnding frame... (100000 if you want to be sure ^^)