source: trunk/src/layer.h @ 38

Last change on this file since 38 was 38, checked in by sam, 10 years ago

Dynamically allocate layers when loading maps.

  • Property svn:keywords set to Id
File size: 264 bytes
Line 
1
2#if !defined __LAYER_H__
3#define __LAYER_H__
4
5#include <cstdio>
6
7class Layer
8{
9public:
10    Layer(int w, int h, FILE *fp);
11    ~Layer();
12
13    unsigned int GetTile(int x, int y);
14
15//private:
16    int width, height;
17    unsigned int *data;
18};
19
20#endif // __LAYER_H__
21
Note: See TracBrowser for help on using the repository browser.