Electronic fence.
[sdlbotor.git] / Tileset.h
blob03641f111fccbadeb510ce242dc7034f7b7b7ac6
1 #ifndef TILESET_H
2 #define TILESET_H
4 #ifdef __linux__
5 #include <SDL/SDL.h>
6 #else
7 #include <SDL.h>
8 #endif
10 #include "SDLVideoOut.h"
12 namespace botor
15 //template<unsigned int TILE_WIDTH, unsigned int TILE_HEIGHT>
16 class Tileset
19 SDL_Surface *tileset;
21 unsigned int SET_WIDTH;
22 unsigned int SET_HEIGHT;
24 public:
26 unsigned static const int TILE_WIDTH = 20;
27 unsigned static const int TILE_HEIGHT = 20;
30 //Tileset();
31 //~Tileset();
33 bool load( const char* ftile );
35 void unload();
37 void Draw( Sint16 x, Sint16 y, unsigned int tileID );
44 #endif