include/nds/arm9/PA_Gif.h File Reference

Gif, animations... More...

#include <PA9.h>
#include "PA_Interrupt.h"
#include "PA_Palette.h"
#include "PA_Draw.h"
#include "gif/gif_lib.h"

Data Structures

struct  PA_GifInfos

Functions

void PA_Load16bitGif (u8 screen, s16 x, s16 y, void *gif)
int DecodeGif (const u8 *userData, u8 *ScreenBuff, u16 *Palette, u8 nBits, s16 SWidth)
u16 PA_GetGifWidth (void *gif)
 Get a Gif's width in pixels.
u16 PA_GetGifHeight (void *gif)
 Get a Gif's height in pixels.
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 !
void PA_LoadGif (u8 screen, void *gif)
 Load a Gif on a 16 bit background... Don't forget to Init the background !
void PA_GifAnimSpeed (float speed)
 Set the gif's speed.
void PA_GifAnimStop (void)
 Stop a Gif animation.
void PA_GifAnimPause (void)
 Pause a Gif animation.
void PA_GifAnimPlay (void)
void PA_GifSetStartFrame (s32 StartFrame)
 Set the Gif's starting frame number.
void PA_GifSetEndFrame (s32 EndFrame)
 Set the Gif's ending frame number.
s32 PA_GifGetFrame (void)
 Return's the gif's current frame.
u8 * PA_GifToTiles (void *gif, u16 *temppal)
 Export Gif to a friendly 8x8 tile format, allowing it to be used to create sprites and backgrounds ! Returns a pointer towards your sprite gfx.

Variables

GifFileTypegifinfo
s16 gifwidth
s16 gifheight
u8 PA_nBit [2]
s32 GifCurrentLine
PA_GifInfos PA_GifInfo


Detailed Description

Gif, animations...

Manages everything about gif files.


Function Documentation

int DecodeGif ( const u8 *  userData,
u8 *  ScreenBuff,
u16 *  Palette,
u8  nBits,
s16  SWidth 
)

void PA_Load16bitGif ( u8  screen,
s16  x,
s16  y,
void *  gif 
)


Variable Documentation

s16 gifheight

s16 gifwidth

u8 PA_nBit[2]


Generated on Sat Jun 13 12:55:13 2009 for PAlib - Programmer's Arsenal by  doxygen 1.5.8