6352e8e319
all at once
28 lines
497 B
C++
28 lines
497 B
C++
#ifndef STAR_DRAWABLE_PAINTER_HPP
|
|
#define STAR_DRAWABLE_PAINTER_HPP
|
|
|
|
#include "StarDrawable.hpp"
|
|
#include "StarRenderer.hpp"
|
|
#include "StarAssetTextureGroup.hpp"
|
|
|
|
namespace Star {
|
|
|
|
STAR_CLASS(DrawablePainter);
|
|
|
|
class DrawablePainter {
|
|
public:
|
|
DrawablePainter(RendererPtr renderer, AssetTextureGroupPtr textureGroup);
|
|
|
|
void drawDrawable(Drawable const& drawable);
|
|
|
|
void cleanup(int64_t textureTimeout);
|
|
|
|
private:
|
|
RendererPtr m_renderer;
|
|
AssetTextureGroupPtr m_textureGroup;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|