mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add TextNote
This commit is contained in:
parent
7b4ddfd278
commit
db565d23a7
4 changed files with 108 additions and 19 deletions
19
src/graphics/render/TextNote.cpp
Normal file
19
src/graphics/render/TextNote.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "TextNote.hpp"
|
||||
|
||||
TextNote::TextNote(std::wstring text, NotePreset preset, glm::vec3 position)
|
||||
: text(std::move(text)),
|
||||
preset(std::move(preset)),
|
||||
position(std::move(position)) {
|
||||
}
|
||||
|
||||
const std::wstring& TextNote::getText() const {
|
||||
return text;
|
||||
}
|
||||
|
||||
const NotePreset& TextNote::getPreset() const {
|
||||
return preset;
|
||||
}
|
||||
|
||||
const glm::vec3& TextNote::getPosition() const {
|
||||
return position;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue