source: trunk/src/layer.h @ 133

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

Fix z-sorting of tiles. For now.

  • Property svn:keywords set to Id
File size: 532 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Layer class
8// ---------------
9// A Layer object is a subset of a Map.
10//
11
12#if !defined __DH_LAYER_H__
13#define __DH_LAYER_H__
14
15#include <stdint.h>
16
17#include "scene.h"
18
19class Layer
20{
21public:
22    Layer(int w, int h, int z, int o, uint32_t *data);
23    ~Layer();
24
25    int GetZ();
26
27    void Render(Scene *scene, int x, int y, int z);
28
29private:
30    int width, height, altitude, orientation;
31    uint32_t *data;
32};
33
34#endif // __DH_LAYER_H__
35
Note: See TracBrowser for help on using the repository browser.