mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
A lot of changes in almost all files
This commit is contained in:
parent
cd3e737385
commit
bc9d29cf68
28 changed files with 3485 additions and 476 deletions
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#define REGION_SIZE_BIT 5
|
||||
#define REGION_SIZE (1 << (REGION_SIZE_BIT))
|
||||
#define REGION_VOL ((REGION_SIZE) * (REGION_SIZE))
|
||||
|
|
@ -26,13 +27,16 @@ public:
|
|||
|
||||
void put(const char* chunkData, int x, int y);
|
||||
|
||||
bool readPlayer(glm::vec3& position, float& camX, float& camY);
|
||||
bool readChunk(int x, int y, char* out);
|
||||
bool getChunk(int x, int y, char* out);
|
||||
void readRegion(char* fileContent);
|
||||
unsigned int writeRegion(char* out, int x, int y, char** region);
|
||||
void writePlayer(glm::vec3 position, float camX, float camY);
|
||||
void write();
|
||||
|
||||
std::string getRegionFile(int x, int y);
|
||||
std::string getPlayerFile();
|
||||
};
|
||||
|
||||
extern void longToCoords(int& x, int& y, long key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue