Added enabling and disabling of the octree from the settings buffer

This commit is contained in:
2018-02-24 21:29:17 -08:00
parent d2bc5e483a
commit 6464fceece
5 changed files with 47 additions and 16 deletions

View File

@@ -35,6 +35,10 @@ bool Application::init_clcaster() {
raycaster->add_to_settings_buffer("octree_dimensions", "OCTDIM", (int64_t*)&MAP_X);
// TODO: ALLOW RVALUES FOR SETTINGS BUFFER
int64_t oct_enabled = 0;
raycaster->add_to_settings_buffer("using_octree", "OCTENABLED", &oct_enabled);
map = std::make_shared<Map>(MAP_X);
// TODO: Implement this