summaryrefslogtreecommitdiff
path: root/src/include/graphic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/graphic.h')
-rw-r--r--src/include/graphic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/graphic.h b/src/include/graphic.h
index c1a92c5..52cc031 100644
--- a/src/include/graphic.h
+++ b/src/include/graphic.h
@@ -4,6 +4,7 @@
#include "SDL/SDL.h"
#include "data_ini.h"
#include "data_ress.h"
+#include "data_config.h"
#include "data_localgame.h"
#define SCREEN_BPP 32
@@ -12,14 +13,16 @@
Uint32 getPixel(SDL_Surface *s, int x, int y);
Uint32 getPixel8BitPalette(SDL_Surface *s, int x, int y);
int isTransparent(SDL_Surface *s, int x, int y);
-
void putPixel(SDL_Surface *s, int x, int y, Uint32 p);
+
SDL_Surface * createSurface(int width, int height);
SDL_Surface * loadGif(char *filePath);
+
+int init(char *winCaption, gameConfig_t *conf, gameGraphics_t *gGraph);
int paintTerrain(gameIni_t *gIni, gameRess_t *gRess, gameGraphics_t *gGraph);
int repaint(gameGraphSurfaces_t *srcSurfs, SDL_Rect *srcRect, SDL_Surface *dstSurf, SDL_Rect dstRect);
int findAndZSortObjects(gameGraphObjState_t *objectsStat, SDL_Rect *offsetRect, gameGraphObjState_t **objectsFound);
-int paintObject(gameGraphObjState_t *obj, SDL_Rect *srcRect, SDL_Surface *dstSurf);
+int paintObject(gameGraphObjState_t *obj, SDL_Rect *srcRect, SDL_Surface *dstSurf, SDL_Rect *dstRect);
#endif /*GRAPHIC_H*/