From b5bdecf95ad72ff4aa7ac454dda74aaefe6e79e6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 31 May 2019 23:57:56 +0200 Subject: [PATCH] Added VoxelBuffer to the build. --- SCsub | 3 +-- register_types.cpp | 4 ++++ voxelman | 1 + world/voxel_buffer.h | 6 +++--- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 120000 voxelman diff --git a/SCsub b/SCsub index 05635be..dd4a8c7 100644 --- a/SCsub +++ b/SCsub @@ -16,5 +16,4 @@ env.add_source_files(env.modules_sources,"meshers/transvoxel_tables.cpp") env.add_source_files(env.modules_sources,"utility/marching_cubes_voxel_query.cpp") - - +env.add_source_files(env.modules_sources,"world/voxel_buffer.cpp") diff --git a/register_types.cpp b/register_types.cpp index 645fda2..73e9c45 100644 --- a/register_types.cpp +++ b/register_types.cpp @@ -10,6 +10,8 @@ #include "utility/marching_cubes_voxel_query.h" +#include "world/voxel_buffer.h" + void register_voxelman_types() { ClassDB::register_class(); ClassDB::register_class(); @@ -23,6 +25,8 @@ void register_voxelman_types() { ClassDB::register_class(); ClassDB::register_class(); + + ClassDB::register_class(); } void unregister_voxelman_types() { diff --git a/voxelman b/voxelman new file mode 120000 index 0000000..f4da684 --- /dev/null +++ b/voxelman @@ -0,0 +1 @@ +../../modules/voxelman \ No newline at end of file diff --git a/world/voxel_buffer.h b/world/voxel_buffer.h index f09352a..1c97287 100644 --- a/world/voxel_buffer.h +++ b/world/voxel_buffer.h @@ -20,9 +20,9 @@ #ifndef VOXEL_BUFFER_H #define VOXEL_BUFFER_H -#include "math/vector3i.h" -#include -#include +#include "../math/vector3i.h" +#include "core/reference.h" +#include "core/vector.h" // Dense voxels data storage. // Organized in 8-bit channels like images, all optional.