Linux build working again, removed the GL_Testing stuff, I'm going to move to Vulkan eventually. Got voxel search working mostly with the new octree changes. Issue with mirroring of voxel data currently
This commit is contained in:
@@ -25,11 +25,10 @@ public:
|
||||
Map(uint32_t dimensions);
|
||||
|
||||
void setVoxel(sf::Vector3i position, int val);
|
||||
|
||||
bool getVoxelFromOctree(sf::Vector3i position);
|
||||
|
||||
bool getVoxel(sf::Vector3i pos);
|
||||
Octree octree;
|
||||
|
||||
Octree octree;
|
||||
|
||||
bool test();
|
||||
|
||||
@@ -40,8 +39,6 @@ private:
|
||||
std::stringstream output_stream;
|
||||
// =========================
|
||||
|
||||
void generate_octree(unsigned int dimensions);
|
||||
|
||||
char* voxel_data;
|
||||
|
||||
};
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
|
||||
static const int buffer_size = 100000;
|
||||
|
||||
|
||||
Octree();
|
||||
~Octree() {};
|
||||
|
||||
@@ -56,10 +55,12 @@ public:
|
||||
|
||||
// With a position and the head of the stack. Traverse down the voxel hierarchy to find
|
||||
// the IDX and stack position of the highest resolution (maybe set resolution?) oct
|
||||
bool get_voxel(sf::Vector3i position);
|
||||
bool GetVoxel(sf::Vector3i position);
|
||||
|
||||
void print_block(int block_pos);
|
||||
|
||||
bool Validate(char* data, sf::Vector3i dimensions);
|
||||
|
||||
private:
|
||||
|
||||
std::tuple<uint64_t, uint64_t> GenerationRecursion(
|
||||
|
||||
Reference in New Issue
Block a user