source: trunk/src/tileset.h @ 96

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

Implement lazy initialisation of TileSet objects.

  • Property svn:keywords set to Id
File size: 489 bytes
Line 
1
2/*
3 * The tile manager
4 */
5
6#if !defined __DH_TILESET_H__
7#define __DH_TILESET_H__
8
9#include <stdint.h>
10
11#include "asset.h"
12
13class TileSetData;
14
15class TileSet : public Asset
16{
17public:
18    TileSet(char const *path);
19    virtual ~TileSet();
20
21    /* Inherited from Asset */
22    virtual void TickRender(float delta_time);
23
24    /* New implementations */
25    char const *GetName();
26
27    void BlitTile(uint32_t id, int x, int y);
28
29private:
30    TileSetData *data;
31};
32
33#endif // __DH_TILESET_H__
34
Note: See TracBrowser for help on using the repository browser.