Hunting down some bugs and verfiying correct oct-tree traversal, not quite there yet but close

This commit is contained in:
MitchellHansen
2017-03-21 22:05:23 -07:00
parent 5e222a0331
commit 30959128e4
6 changed files with 102 additions and 79 deletions

View File

@@ -93,10 +93,13 @@ int main() {
// ni.stop_listening_for_clients();
// =============================
// Map _map(sf::Vector3i(0, 0, 0));
// _map.generate_octree();
// _map.a.get_voxel(sf::Vector3i(5, 5, 0));
// return 0;
Map _map(sf::Vector3i(0, 0, 0));
_map.generate_octree();
std::cout << _map.a.get_voxel(sf::Vector3i(5, 5, 0));
std::cout << _map.getVoxel(sf::Vector3i(5, 5, 0));
_map.test_map();
std::cin.get();
return 0;
// =============================
sf::RenderWindow window(sf::VideoMode(WINDOW_X, WINDOW_Y), "SFML");