mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
Added gui_util
This commit is contained in:
parent
e3f7f7218f
commit
2055cff0be
11 changed files with 122 additions and 35 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue