class SGU_Sprite

SGU Sprite Object for SDL

Public Methods

bool Load(char *filename, SDL_PixelFormat *pxlformat)
This methode load a sprite (*.spr) from the disk
bool Display(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f)
This methode display a sprite on a given SDL_Surface
bool DisplayAlpha(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f, Uint8 p255alpha)
This methode display a sprite on a given SDL_Surface with alpha
int GetZ(int f)
This methode give the z value for the given frame f
int GetX(int f)
This methode give the x offset for the given frame f
int GetY(int f)
This methode give the y offset for the given frame f
int GetW(int f)
This methode give the width for the given frame f
int GetH(int f)
This methode give the height for the given frame f
int GetNbFrames(void)
This methode give the number of frame
bool SGU_Sprite::Load(char *filename, SDL_PixelFormat *pxlformat)
We load a sprite from filename

Documentation

SGU Sprite Object for SDL
bool Load(char *filename, SDL_PixelFormat *pxlformat)
This methode load a sprite (*.spr) from the disk

bool Display(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f)
This methode display a sprite on a given SDL_Surface

bool DisplayAlpha(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f, Uint8 p255alpha)
This methode display a sprite on a given SDL_Surface with alpha

int GetZ(int f)
This methode give the z value for the given frame f

int GetX(int f)
This methode give the x offset for the given frame f

int GetY(int f)
This methode give the y offset for the given frame f

int GetW(int f)
This methode give the width for the given frame f

int GetH(int f)
This methode give the height for the given frame f

int GetNbFrames(void)
This methode give the number of frame

bool SGU_Sprite::Load(char *filename, SDL_PixelFormat *pxlformat)
We load a sprite from filename. The sprite format is the one used with MUANG, Urbanit and MGA


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de