Add files via upload

This commit is contained in:
MihailRis
2021-04-25 16:08:48 +03:00
committed by GitHub
commit e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef VOXELS_CHUNK_H_
#define VOXELS_CHUNK_H_
#define CHUNK_W 16
#define CHUNK_H 128
#define CHUNK_D 16
#define CHUNK_VOL (CHUNK_W * CHUNK_H * CHUNK_D)
class voxel;
class Lightmap;
class Chunk {
public:
int x,y,z;
voxel* voxels;
Lightmap* lightmap;
bool modified = true;
Chunk(int x, int y, int z);
~Chunk();
bool isEmpty();
};
#endif /* VOXELS_CHUNK_H_ */