Working LUA + objects + etc. :) :) :)
[sdlbotor.git] / Tileset.h
blobe3a3e0d5bb4436ba7dcc8222bfcb6cb7eeb27c2e
1 #ifndef TILESET_H
2 #define TILESET_H
4 #ifdef __linux__
5 #include <SDL/SDL.h>
6 #include <SDL/SDL_image.h>
7 #else
8 #include <SDL.h>
9 #include <SDL_image.h>
10 #endif
12 #include "SDLVideoOut.h"
14 namespace botor
17 //template<unsigned int TILE_WIDTH, unsigned int TILE_HEIGHT>
18 class Tileset
21 SDL_Surface *tileset;
23 unsigned int SET_WIDTH;
24 unsigned int SET_HEIGHT;
26 public:
28 unsigned static const int TILE_WIDTH = 20;
29 unsigned static const int TILE_HEIGHT = 20;
31 Tileset();
32 Tileset( const char* ftile );
33 //~Tileset();
35 bool load( const char* ftile );
37 void unload();
39 void Draw( Sint16 x, Sint16 y, unsigned int tileID );
46 #endif