mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
WorldRenderer and HudRenderer classes
This commit is contained in:
parent
5955c74208
commit
d3f29f8ace
8 changed files with 43 additions and 216 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue