mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
introduce compressed_chunks namespace
This commit is contained in:
parent
c5fa6935a6
commit
41f6194fc1
3 changed files with 104 additions and 75 deletions
12
src/voxels/compressed_chunks.hpp
Normal file
12
src/voxels/compressed_chunks.hpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include "typedefs.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Chunk;
|
||||
|
||||
namespace compressed_chunks {
|
||||
std::vector<ubyte> encode(const Chunk& chunk);
|
||||
void decode(Chunk& chunk, const ubyte* src, size_t size);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue