summaryrefslogtreecommitdiff
path: root/src/include/graphic.h
blob: 2e403012f4849cbefce048ce0542c9ccf6683c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef GRAPHIC_H
#define GRAPHIC_H

#include "SDL/SDL.h"
#include "data_ini.h"
#include "data_ress.h"
#include "data_localgame.h"

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 paintTerrain(gameIni_t *gIni, gameRess_t *gRess, gameGraphics_t *gGraph);

#endif /*GRAPHIC_H*/