mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
add entity to TextNote
This commit is contained in:
parent
767fa7c7a9
commit
dc29f65fa8
5 changed files with 39 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue