Fix precompiled headers

Added edge detection (if it works :/)
This commit is contained in:
Bram Verhulst
2024-04-06 01:23:24 +02:00
parent 71d364d9d8
commit 9def986c83
25 changed files with 932 additions and 593 deletions

24
Engine/Text.h Normal file
View File

@@ -0,0 +1,24 @@
#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 };
};