Brenta Engine
1.2
Loading...
Searching...
No Matches
text_node_component.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/node.hpp>
9
#include <brenta/text.hpp>
10
11
#include <tenno/memory.hpp>
12
13
namespace
brenta
14
{
15
16
class
TextNodeComponent
:
public
NodeComponent
17
{
18
public
:
19
20
Text
text;
21
22
TextNodeComponent
() =
default
;
23
TextNodeComponent
(
const
Text
& text)
24
: text(text) {}
25
26
void
update(
float
delta_time)
override
;
27
void
draw(
const
glm::mat4& world_matrix)
override
;
28
29
};
30
31
}
// namespace brenta
brenta::NodeComponent
Definition
node.hpp:68
brenta::TextNodeComponent
Definition
text_node_component.hpp:17
brenta::Text
Definition
text.hpp:20
include
brenta
node_components
text_node_component.hpp
Generated by
1.9.8