add entity to TextNote

This commit is contained in:
MihailRis 2026-04-15 23:26:08 +03:00
parent 767fa7c7a9
commit dc29f65fa8
5 changed files with 39 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include "constants.hpp"
#include "presets/NotePreset.hpp"
/// @brief 3D text instance
@ -7,6 +8,7 @@ class TextNote {
std::wstring text;
NotePreset preset;
glm::vec3 position;
entityid_t entity = ENTITY_NONE;
glm::vec3 xAxis {1, 0, 0};
glm::vec3 yAxis {0, 1, 0};
@ -14,6 +16,8 @@ public:
TextNote(std::wstring text, NotePreset preset, glm::vec3 position);
void setText(std::wstring_view text);
void setEntity(entityid_t eid);
entityid_t getEntity() const;
const std::wstring& getText() const;