add on_hud_render event

This commit is contained in:
MihailRis
2024-07-12 09:17:53 +03:00
parent 247acb3687
commit 4aa76e35b7
4 changed files with 17 additions and 0 deletions
+4
View File
@@ -12,6 +12,7 @@
#include "../../items/ItemDef.hpp"
#include "../../items/ItemStack.hpp"
#include "../../logic/PlayerController.hpp"
#include "../../logic/scripting/scripting_hud.hpp"
#include "../../maths/FrustumCulling.hpp"
#include "../../maths/voxmaths.hpp"
#include "../../objects/Player.hpp"
@@ -199,6 +200,9 @@ void WorldRenderer::renderLevel(
shader->uniformMatrix("u_model", glm::mat4(1.0f));
level->entities->render(assets, *modelBatch, *frustumCulling, pause);
if (!pause) {
scripting::on_frontend_render();
}
modelBatch->render();
skybox->unbind();