mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
move 3d texts rendering code to TextsRenderer
This commit is contained in:
parent
5b3fe465b9
commit
42b26707cb
4 changed files with 147 additions and 113 deletions
35
src/graphics/render/TextsRenderer.hpp
Normal file
35
src/graphics/render/TextsRenderer.hpp
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#pragma once
|
||||
|
||||
class DrawContext;
|
||||
class Camera;
|
||||
class Assets;
|
||||
class Batch3D;
|
||||
class Frustum;
|
||||
class TextNote;
|
||||
struct EngineSettings;
|
||||
|
||||
class TextsRenderer {
|
||||
const Frustum* frustum;
|
||||
|
||||
void renderText(
|
||||
Batch3D& batch,
|
||||
const TextNote& note,
|
||||
const DrawContext& context,
|
||||
const Assets& assets,
|
||||
const Camera& camera,
|
||||
const EngineSettings& settings,
|
||||
bool hudVisible
|
||||
);
|
||||
public:
|
||||
TextsRenderer(const Frustum* frustum);
|
||||
|
||||
void renderTexts(
|
||||
Batch3D& batch,
|
||||
const DrawContext& context,
|
||||
const Assets& assets,
|
||||
const Camera& camera,
|
||||
const EngineSettings& settings,
|
||||
bool hudVisible,
|
||||
bool frontLayer
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue