hud refactor (part II)

This commit is contained in:
MihailRis
2024-01-07 19:22:29 +03:00
parent 8118afce5c
commit e493c67dfa
13 changed files with 142 additions and 91 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
#include <glm/glm.hpp>
#include <memory>
class Assets;
class Viewport;
class Shader;
class Atlas;
@@ -19,11 +20,11 @@ class BlocksPreview {
const ContentGfxCache* const cache;
const Viewport* viewport;
public:
BlocksPreview(Shader* shader, Atlas* atlas, const ContentGfxCache* cache);
BlocksPreview(Assets* assets, const ContentGfxCache* cache);
~BlocksPreview();
void begin(const Viewport* viewport);
void draw(const Block* block, int x, int y, int size, glm::vec4 tint);
};
#endif // FRONTEND_BLOCKS_PREVIEW_H_
#endif // FRONTEND_BLOCKS_PREVIEW_H_