source: trunk/src/layer.h @ 79

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

Rendering starts to work again. There is no Z-sorting yet.

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