diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 20:49:03 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 20:49:03 +0000 |
| commit | 77465c2629ef63629d69c97a0af60a47a07ce7f5 (patch) | |
| tree | 3d361898d0f29f4b789e52682e0945c741df6cb0 /src/client/image.h | |
| parent | b6af4e925f4cf9dd284728e846b99e1de776ec31 (diff) | |
- opravena chyba, tux mophol pomocou bombballu vybuchnuteho v objekte do ktoreho sa dostal ako duch pridavat itemy
- kod namiesto SDL_Surface pouziva moj typ image_t
git-svn-id: http://opensvn.csie.org/tuxanci_ng@154 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client/image.h')
| -rwxr-xr-x | src/client/image.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/image.h b/src/client/image.h index e80efb5..c154ff0 100755 --- a/src/client/image.h +++ b/src/client/image.h @@ -23,13 +23,20 @@ typedef struct image_struct } image_data_t; */ +typedef struct image_struct +{ + int w; + int h; + SDL_Surface *image; +} image_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 image_t* addImageData(char *file, int alpha, char *name, char *group); +extern image_t* 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 drawImage(image_t *p, int x,int y, int px, int py, int w, int h); extern void quitImageData(); #endif |