Cleaned up and pulled out some code into Map.cpp in order to start working on the meat of the *Correct* voxel traversal method as explained in the paper.

This commit is contained in:
MitchellHansen
2017-07-12 00:09:19 -07:00
parent 1bfc54adf1
commit 316293a110
6 changed files with 333 additions and 98 deletions

View File

@@ -8,6 +8,9 @@
#include <string>
#include <imgui/imgui.h>
#include <cmath>
#include <SFML/Graphics/Texture.hpp>
#include <algorithm>
#include <tuple>
const double PI = 3.141592653589793238463;
const float PI_F = 3.14159265358979f;
@@ -250,8 +253,6 @@ inline bool CheckContiguousValid(const uint64_t c) {
return (c & bitmask) == bitmask;
}
inline bool IsLeaf(const uint64_t descriptor) {
uint64_t leaf_mask = 0xFF000000;