aabb block shape WIP + common refactor

This commit is contained in:
MihailRis
2023-11-30 14:48:38 +03:00
parent 73d87ae451
commit 0c35eeb072
21 changed files with 177 additions and 76 deletions
+5
View File
@@ -4,11 +4,14 @@
#include <string>
#include <memory>
#include <glm/glm.hpp>
#include "../graphics/GfxContext.h"
class Batch2D;
class Camera;
class Level;
class Block;
class Assets;
class Player;
class Level;
@@ -38,6 +41,8 @@ class HudRenderer {
gui::GUI* gui;
const ContentGfxCache* const cache;
WorldRenderer* renderer;
void drawBlockPreview(const Block* def, float x, float y, float w, float h, glm::vec4 tint);
public:
HudRenderer(Engine* engine,
Level* level,