mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
hud refactor (part II)
This commit is contained in:
parent
8118afce5c
commit
e493c67dfa
13 changed files with 142 additions and 91 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue