working version of text rendering

This commit is contained in:
ohyzha
2024-08-02 09:52:26 +03:00
parent 9b58ba5f55
commit e69a553b18
13 changed files with 491 additions and 102 deletions

View File

@@ -16,14 +16,16 @@ namespace OpenVulkano::Scene
class SimpleDrawable : public Drawable
{
protected:
Geometry* m_mesh = nullptr;
Material* m_material = nullptr;
UniformBuffer* m_uniBuffer = nullptr;
public:
SimpleDrawable(const DrawPhase phase = DrawPhase::MAIN)
: Drawable(DrawEncoder::GetDrawEncoder<SimpleDrawable>(), phase)
{}
: Drawable(DrawEncoder::GetDrawEncoder<SimpleDrawable>(), phase)
{
}
explicit SimpleDrawable(const SimpleDrawable* toCopy)
: Drawable(DrawEncoder::GetDrawEncoder<SimpleDrawable>(), toCopy->GetDrawPhase())