diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
| commit | 6d4e1eae16b84918009625a866104ec26a234277 (patch) | |
| tree | a340a8a547a60c9f63c8dfafe8909242f9c9bbd8 /include/image.h | |
nahranie tarballu tuxanci-ng na SVN server
Dusan Durech ( Oroborus )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@1 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/image.h')
| -rwxr-xr-x | include/image.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h new file mode 100755 index 0000000..cacb469 --- /dev/null +++ b/include/image.h @@ -0,0 +1,33 @@ + +#ifndef IMAGE_H + +#define IMAGE_H + +#include "image.h" +#include "interface.h" + +#define IMAGE_NO_ALPHA 0 +#define IMAGE_ALPHA 1 + +#define IMAGE_GROUP_BASE "base" +#define IMAGE_GROUP_EXTENDSIO "extension" +#define IMAGE_GROUP_USER "user" +#define IMAGE_GROUP_OTHER "other" + +typedef struct image_struct +{ + char *name; + char *group; + SDL_Surface *image; +} image_data_t; + +extern bool_t isImageInicialized(); +extern void initImageData(); +extern SDL_Surface* addImageData(char *file, int alpha, char *name, char *group); +extern SDL_Surface* getImage(char *group, char *name); +extern void delImage(char *group, char *name); +extern void delAllImageInGroup(char *group); +extern void drawImage(SDL_Surface *p, int x,int y, int px, int py, int w, int h); +extern void quitImageData(); + +#endif |