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
13namespace brenta
14{
15
17{
18public:
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