2023-07-10 00:29:21 +00:00
|
|
|
#ifndef BBGE_TILERENDER_H
|
|
|
|
#define BBGE_TILERENDER_H
|
|
|
|
|
|
|
|
#include "RenderObject.h"
|
|
|
|
#include "Tile.h"
|
|
|
|
|
|
|
|
class Tileset;
|
|
|
|
|
|
|
|
class TileRender : public RenderObject
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
const TileStorage& storage;
|
|
|
|
public:
|
|
|
|
|
|
|
|
TileRender(const TileStorage& tiles);
|
|
|
|
virtual ~TileRender();
|
2023-07-13 22:19:33 +00:00
|
|
|
virtual void onRender(const RenderState& rs) const OVERRIDE;
|
|
|
|
virtual void onUpdate(float dt) OVERRIDE;
|
2023-07-11 20:30:28 +00:00
|
|
|
|
|
|
|
bool renderBorders;
|
2023-10-19 22:35:25 +00:00
|
|
|
|
|
|
|
static Vector GetTagColor(int tag);
|
2023-07-10 00:29:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // BBGE_TILERENDER_H
|