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

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

#define SCREEN_BPP 32
#define MY_SDLSURFACE_OPTS SDL_HWSURFACE|SDL_HWACCEL|SDL_SRCCOLORKEY|SDL_ASYNCBLIT|SDL_RLEACCEL

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*/