source: trunk/src/layer.h @ 75

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

Much better resource allocation and release. Scene manager stub.

  • Property svn:keywords set to Id
File size: 365 bytes
Line 
1
2/*
3 * The layer object
4 */
5
6#if !defined __DH_LAYER_H__
7#define __DH_LAYER_H__
8
9#include <cstdio>
10#include <stdint.h>
11
12class Layer
13{
14public:
15    Layer(int w, int h, int z, uint32_t *data);
16    ~Layer();
17
18    int GetZ();
19    unsigned int GetTile(int x, int y);
20
21    void Draw();
22
23private:
24    int width, height, z;
25    uint32_t *data;
26};
27
28#endif // __DH_LAYER_H__
29
Note: See TracBrowser for help on using the repository browser.