mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 09:49:21 +01:00
Fix precompiled headers
Added edge detection (if it works :/)
This commit is contained in:
24
Engine/Text.h
Normal file
24
Engine/Text.h
Normal 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 };
|
||||
};
|
||||
Reference in New Issue
Block a user