21 lines
495 B
C++
21 lines
495 B
C++
#include "TextComponent.hpp"
|
|
#include <SDL3_ttf/SDL_ttf.h>
|
|
|
|
TextComponent::TextComponent(const std::string& text, const std::string& fontPath, int fontSize, SDL_Color color) : text(text), fontPath(fontPath), fontSize(fontSize), color(color) {
|
|
}
|
|
|
|
TextComponent::~TextComponent() {
|
|
}
|
|
|
|
void TextComponent::Init(SDL_Renderer* renderer) {
|
|
}
|
|
|
|
void TextComponent::Update(float dt) {
|
|
}
|
|
|
|
void TextComponent::Render(SDL_Renderer* renderer) {
|
|
}
|
|
|
|
void TextComponent::SetText(const std::string& newText) {
|
|
}
|