From 77465c2629ef63629d69c97a0af60a47a07ce7f5 Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 17 Jul 2008 20:49:03 +0000 Subject: - 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 --- src/client/image.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/client/image.h') 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 -- cgit v1.2.3