Added gui_util

This commit is contained in:
MihailRis
2023-12-07 13:18:28 +03:00
parent e3f7f7218f
commit 2055cff0be
11 changed files with 122 additions and 35 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
#include "../typedefs.h"
#include <glm/glm.hpp>
class Viewport;
class Shader;
class Atlas;
class Batch3D;
@@ -15,11 +16,12 @@ class BlocksPreview {
Atlas* atlas;
Batch3D* batch;
const ContentGfxCache* const cache;
const Viewport* viewport;
public:
BlocksPreview(Shader* shader, Atlas* atlas, const ContentGfxCache* cache);
~BlocksPreview();
void begin();
void begin(const Viewport* viewport);
void draw(const Block* block, int x, int y, int size, glm::vec4 tint);
};