osb/source/rendering/StarDrawablePainter.hpp

25 lines
434 B
C++
Raw Permalink Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#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;
};
}