mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
24
src/voxels/Chunk.h
Normal file
24
src/voxels/Chunk.h
Normal 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_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue