source: trunk/src/tileset.h @ 138

Last change on this file since 138 was 138, checked in by sam, 11 years ago

Start to handle differences between vertical and horizontal tiles.

  • Property svn:keywords set to Id
File size: 836 bytes
RevLine 
[100]1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
[22]5
[100]6//
7// The TileSet class
8// -----------------
[104]9// A TileSet is a collection of tiles stored in a texture. Texture uploading
10// and freeing is done in the render tick method. When the refcount drops to
11// zero, the texture is freed.
[100]12//
[22]13
[75]14#if !defined __DH_TILESET_H__
15#define __DH_TILESET_H__
[38]16
[79]17#include <stdint.h>
18
[95]19#include "asset.h"
20
[75]21class TileSetData;
[22]22
[95]23class TileSet : public Asset
[22]24{
25public:
[75]26    TileSet(char const *path);
[96]27    virtual ~TileSet();
[22]28
[105]29protected:
[96]30    /* Inherited from Asset */
[105]31    virtual Group GetGroup();
[96]32    virtual void TickRender(float delta_time);
33
[105]34public:
[106]35    /* New methods */
[75]36    char const *GetName();
37
[138]38    void BlitTile(uint32_t id, int x, int y, int z, int o);
[22]39
40private:
[75]41    TileSetData *data;
[22]42};
43
[75]44#endif // __DH_TILESET_H__
[38]45
Note: See TracBrowser for help on using the repository browser.