mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
update WorldRenderer header
This commit is contained in:
parent
d7d7e40799
commit
3fc1097217
1 changed files with 24 additions and 23 deletions
|
|
@ -44,6 +44,30 @@ struct CompileTimeShaderSettings {
|
||||||
};
|
};
|
||||||
|
|
||||||
class WorldRenderer {
|
class WorldRenderer {
|
||||||
|
public:
|
||||||
|
static bool showChunkBorders;
|
||||||
|
static bool showEntitiesDebug;
|
||||||
|
|
||||||
|
WorldRenderer(Engine& engine, LevelFrontend& frontend, Player& player);
|
||||||
|
~WorldRenderer();
|
||||||
|
|
||||||
|
void update(const Camera& camera, float delta);
|
||||||
|
|
||||||
|
void renderFrame(
|
||||||
|
const DrawContext& context,
|
||||||
|
Camera& camera,
|
||||||
|
bool hudVisible,
|
||||||
|
PostProcessing& postProcessing
|
||||||
|
);
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
|
void setDebug(bool flag);
|
||||||
|
|
||||||
|
void toggleLightsDebug();
|
||||||
|
|
||||||
|
Weather& getWeather();
|
||||||
|
private:
|
||||||
Engine& engine;
|
Engine& engine;
|
||||||
const Level& level;
|
const Level& level;
|
||||||
Player& player;
|
Player& player;
|
||||||
|
|
@ -106,27 +130,4 @@ public:
|
||||||
std::unique_ptr<TextsRenderer> texts;
|
std::unique_ptr<TextsRenderer> texts;
|
||||||
std::unique_ptr<BlockWrapsRenderer> blockWraps;
|
std::unique_ptr<BlockWrapsRenderer> blockWraps;
|
||||||
std::unique_ptr<NamedSkeletons> skeletons;
|
std::unique_ptr<NamedSkeletons> skeletons;
|
||||||
|
|
||||||
static bool showChunkBorders;
|
|
||||||
static bool showEntitiesDebug;
|
|
||||||
|
|
||||||
WorldRenderer(Engine& engine, LevelFrontend& frontend, Player& player);
|
|
||||||
~WorldRenderer();
|
|
||||||
|
|
||||||
void update(const Camera& camera, float delta);
|
|
||||||
|
|
||||||
void renderFrame(
|
|
||||||
const DrawContext& context,
|
|
||||||
Camera& camera,
|
|
||||||
bool hudVisible,
|
|
||||||
PostProcessing& postProcessing
|
|
||||||
);
|
|
||||||
|
|
||||||
void clear();
|
|
||||||
|
|
||||||
void setDebug(bool flag);
|
|
||||||
|
|
||||||
void toggleLightsDebug();
|
|
||||||
|
|
||||||
Weather& getWeather();
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue