Move GetDefaultShader logic into function

This commit is contained in:
Georg Hagen
2025-01-04 21:16:08 +01:00
parent c0e85d4fba
commit 47a904f572
2 changed files with 15 additions and 11 deletions

View File

@@ -49,10 +49,12 @@ namespace OpenVulkano::Scene
[[nodiscard]] Math::AABB& GetBoundingBox() { return m_bbox; }
[[nodiscard]] TextConfig& GetConfig() { return m_cfg; }
[[nodiscard]] const std::string& GetText() const { return m_text; }
[[nodiscard]] const std::shared_ptr<AtlasData> GetAtlasData() { return m_atlasData; }
[[nodiscard]] const std::shared_ptr<AtlasData>& GetAtlasData() { return m_atlasData; }
[[nodiscard]] Geometry* GetGeometry() { return &m_geometry; }
[[nodiscard]] Texture* GetTexture() { return &m_atlasData->texture; }
[[nodiscard]] UniformBuffer* GetUniformBuffer() { return &m_uniBuffer; }
[[nodiscard]] static Shader* GetDefaultShader(FontAtlasType type);
};
}