#include "RotateImage.h"
#include "Fxp.h"
#include "rect.h"
#include "bitmask.h"
#include <SDL/begin_code.h>
#include <SDL/close_code.h>
Include dependency graph for sprite.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
| class | Sprite |
| The basic Sprite class itself. More... | |
Sprite flags | |
| Functions of the various sprite flags | |
| #define | SPRITE_NONE 0x0000 |
| No flags. | |
| #define | SPRITE_WAIT 0x0001 |
| Sprite is waiting for first draw or removal from list. | |
| #define | SPRITE_MOVED 0x0002 |
| Sprite needs redraw. | |
| #define | SPRITE_EXPIRED 0x0004 |
| Sprite needs removal from list. | |
| #define | SPRITE_DELETEABLE 0x0008 |
| Sprite can be freed from mem upon removal from list. | |
| #define | SPRITE_OWNSURFACE 0x0010 |
| Sprite owns aka can free the contained SDL_surface. | |
| #define | SPRITE_OWNBITMASK 0x0020 |
| Sprite owns aka can free the contained bitmasks. | |
Image manipulation functions | |
| Functions to load and prepare images | |
| DECLSPEC SDL_Surface *SDLCALL | LoadConvertBMP (const char *, Uint8 tr=255, Uint8 tg=0, Uint8 tb=255) |
| Loads an image and converts it to screen parameters. | |
| DECLSPEC bitmask *SDLCALL | MakeBitMask (SDL_Surface *surf, Rect rect) |
| Converts selected portion of image into collision bitmask. | |
Defines | |
| #define | COL_LAYER(x) (0xff&(1<<x)) |
| Converts a collision layer to a collision mask. | |
Typedefs | |
| typedef Uint16 | SpriteFlag |
| Type used for sprite status flag. | |
| typedef Uint8 | ColType |
| Type used for collision layer. | |
Definition in file sprite.h.
1.3.4