add gfx.text3d.spawn(...)

This commit is contained in:
MihailRis
2024-11-14 10:32:50 +03:00
parent c4170c07c5
commit eb5715eba9
7 changed files with 57 additions and 15 deletions
+10
View File
@@ -1,5 +1,10 @@
#pragma once
#include <unordered_map>
#include <memory>
#include "typedefs.hpp"
class DrawContext;
class Camera;
class Assets;
@@ -13,6 +18,9 @@ class TextsRenderer {
const Assets& assets;
const Frustum& frustum;
std::unordered_map<u64id_t, std::unique_ptr<TextNote>> notes;
u64id_t nextNote = 1;
void renderText(
const TextNote& note,
const DrawContext& context,
@@ -30,4 +38,6 @@ public:
bool hudVisible,
bool frontLayer
);
u64id_t add(std::unique_ptr<TextNote> note);
};