|
SDLGameEngine
|
Single sprite image. More...
Go to the source code of this file.
Data Structures | |
| struct | SGESPRITEIMAGE |
Functions | |
| SGESPRITEIMAGE * | sgeSpriteImageNew (void) |
| create a empty sprite image | |
| SGESPRITEIMAGE * | sgeSpriteImageNewFile (SGEFILE *f, const char *name) |
| create a sprite image from a file | |
| void | sgeSpriteImageDestroy (SGESPRITEIMAGE *s) |
| destroy a sprite image and free memory | |
| SGESPRITEIMAGE * | sgeSpriteImageDuplicate (SGESPRITEIMAGE *s) |
| duplicate (copy) a sprite image | |
| void | sgeSpriteImageSetImage (SGESPRITEIMAGE *s, SDL_Surface *image) |
| change or set the actual image of a sprite image | |
| void | sgeSpriteImageDraw (SGESPRITEIMAGE *s, Uint8 alpha, SDL_Surface *dest) |
| draw a sprite image on its position | |
| void | sgeSpriteImageDrawXY (SGESPRITEIMAGE *s, int x, int y, Uint8 alpha, SDL_Surface *dest) |
| draw a sprite image on its position | |
| int | sgeSpriteImageBoxCollide (SGESPRITEIMAGE *a, SGESPRITEIMAGE *b) |
| check if the outbox of two images overlap | |
| int | sgeSpriteImageCollide (SGESPRITEIMAGE *a, SGESPRITEIMAGE *b) |
| pixel exact collision detection between two images | |
| void | sgeSpriteImageUseAlpha (SGESPRITEIMAGE *s) |
| use image alpha information for collision detection | |
| void | sgeSpriteImageIgnoreAlpha (SGESPRITEIMAGE *s) |
| use a certain color of the image for collision detection | |
| void | sgeSpriteImageSetCollisionColor (SGESPRITEIMAGE *s, int r, int g, int b, int a) |
| set the collision color if no alpha is used | |
Single sprite image.
Definition in file sgespriteimage.h.