WorldRenderer and HudRenderer classes

This commit is contained in:
MihailRis
2022-10-01 15:59:57 +03:00
parent 5955c74208
commit d3f29f8ace
8 changed files with 43 additions and 216 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
#ifndef VOXELS_BLOCK_H_
#define VOXELS_BLOCK_H_
#define BLOCK_MODEL_CUBE 1
#define BLOCK_MODEL_GRASS 2
class Block {
public:
static Block* blocks[256];
@@ -15,7 +18,7 @@ public:
bool obstacle = true;
bool selectable = true;
bool breakable = true;
unsigned char type = 1;
unsigned char model = 1;
Block(unsigned int id, int texture);
};