mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
type-update
This commit is contained in:
parent
e7e2c16ee6
commit
3c7f46987a
32 changed files with 161 additions and 153 deletions
|
|
@ -12,7 +12,7 @@ struct ChunkFlag{
|
|||
static const int UNSAVED = 0x10;
|
||||
static const int LOADED_LIGHTS = 0x20;
|
||||
};
|
||||
#define CHUNK_DATA_LEN (CHUNK_VOL*2)
|
||||
#define CHUNK_DATA_LEN (CHUNK_VOL*4)
|
||||
|
||||
struct voxel;
|
||||
class Lightmap;
|
||||
|
|
@ -75,10 +75,10 @@ public:
|
|||
|
||||
inline void setReady(bool newState) {SETFLAGS(ChunkFlag::READY, newState);}
|
||||
|
||||
ubyte* encode() const;
|
||||
bool decode(ubyte* data);
|
||||
u_char8* encode() const;
|
||||
bool decode(u_char8* data);
|
||||
|
||||
static void convert(ubyte* data, const ContentLUT* lut);
|
||||
static void convert(u_char8* data, const ContentLUT* lut);
|
||||
};
|
||||
|
||||
#endif /* VOXELS_CHUNK_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue