Files
dae16-VerhulstBram-GameProject/Engine/Text.h
Bram Verhulst 9def986c83 Fix precompiled headers
Added edge detection (if it works :/)
2024-04-06 01:23:24 +02:00

25 lines
402 B
C++

#pragma once
#include <string>
#include "Texture.h"
#include "../Game/TextureManager.h"
class Text
{
public:
Text(const std::string& text, const std::string& fontPath, int size, const Color4f& color);
Text() = default;
~Text();
void Draw(const Point2f& pos) const;
private:
std::string m_Text;
std::string m_FontPath;
Color4f m_Color;
Texture* m_Texture;
bool m_IsCreatedOk{ false };
};