Brenta Engine
1.2
Loading...
Searching...
No Matches
text.hpp
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <brenta/color.hpp>
9
10
#include <tenno/memory.hpp>
11
12
#include <string>
13
14
namespace
brenta
15
{
16
17
class
Font;
18
19
class
Text
20
{
21
public
:
22
23
std::string text;
24
float
x;
25
float
y;
26
float
scale;
27
Color
color;
28
tenno::shared_ptr<Font> font;
29
30
Text
() =
default
;
31
Text
(
const
std::string &text,
32
float
x,
33
float
y,
34
float
scale,
35
Color
color,
36
tenno::shared_ptr<Font> font)
37
: text(text), x(x), y(y), scale(scale), color(color), font(font)
38
{}
39
~Text
() =
default
;
40
41
void
render(
int
width,
int
height)
const
;
42
43
};
44
45
}
// namespace brenta
brenta::Color
Definition
color.hpp:12
brenta::Text
Definition
text.hpp:20
include
brenta
text.hpp
Generated by
1.9.8