More text cleanup
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include "Drawable.hpp"
|
||||
#include "Texture.hpp"
|
||||
#include "VertexBuffer.hpp"
|
||||
#include "Image/Image.hpp"
|
||||
#include "Text/FontAtlas.hpp"
|
||||
|
||||
namespace OpenVulkano::Scene
|
||||
@@ -47,8 +46,6 @@ namespace OpenVulkano::Scene
|
||||
|
||||
public:
|
||||
TextDrawable(const TextConfig& config = TextConfig());
|
||||
TextDrawable(const std::string& atlasMetadataFile, const TextConfig& config = TextConfig());
|
||||
TextDrawable(const Array<char>& atlasMetadata, const TextConfig& config = TextConfig());
|
||||
TextDrawable(const std::shared_ptr<FontAtlas>& atlasData, const TextConfig& config = TextConfig());
|
||||
|
||||
void GenerateText(const std::string& text, const Math::Vector2f& pos = Math::Vector2f(0.f), float scale = 1.0f);
|
||||
@@ -61,7 +58,7 @@ namespace OpenVulkano::Scene
|
||||
[[nodiscard]] const std::shared_ptr<FontAtlas>& GetAtlasData() { return m_atlasData; }
|
||||
|
||||
[[nodiscard]] VertexBuffer* GetVertexBuffer() { return &m_vertexBuffer; }
|
||||
[[nodiscard]] Texture* GetTexture() { return m_atlasData->GetTexture(); }
|
||||
[[nodiscard]] Texture* GetTexture() const { return m_atlasData->GetTexture(); }
|
||||
[[nodiscard]] size_t GetSymbolCount() const { return m_symbolCount; }
|
||||
|
||||
[[nodiscard]] static Shader MakeDefaultShader(FontAtlasType type);
|
||||
|
||||
Reference in New Issue
Block a user