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