osb/source/rendering/StarDrawablePainter.hpp
2024-02-25 15:46:47 +01:00

25 lines
434 B
C++

#pragma once
#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;
};
}