Added VoxelBuffer to the build.

This commit is contained in:
Relintai 2019-05-31 23:57:56 +02:00
parent e2c8c5c2ca
commit b5bdecf95a
4 changed files with 9 additions and 5 deletions

3
SCsub
View File

@ -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,"utility/marching_cubes_voxel_query.cpp")
env.add_source_files(env.modules_sources,"world/voxel_buffer.cpp")

View File

@ -10,6 +10,8 @@
#include "utility/marching_cubes_voxel_query.h" #include "utility/marching_cubes_voxel_query.h"
#include "world/voxel_buffer.h"
void register_voxelman_types() { void register_voxelman_types() {
ClassDB::register_class<VoxelMesher>(); ClassDB::register_class<VoxelMesher>();
ClassDB::register_class<VoxelMesherTransvoxel>(); ClassDB::register_class<VoxelMesherTransvoxel>();
@ -23,6 +25,8 @@ void register_voxelman_types() {
ClassDB::register_class<VoxelLight>(); ClassDB::register_class<VoxelLight>();
ClassDB::register_class<MarchingCubesVoxelQuery>(); ClassDB::register_class<MarchingCubesVoxelQuery>();
ClassDB::register_class<VoxelBuffer>();
} }
void unregister_voxelman_types() { void unregister_voxelman_types() {

1
voxelman Symbolic link
View File

@ -0,0 +1 @@
../../modules/voxelman

View File

@ -20,9 +20,9 @@
#ifndef VOXEL_BUFFER_H #ifndef VOXEL_BUFFER_H
#define VOXEL_BUFFER_H #define VOXEL_BUFFER_H
#include "math/vector3i.h" #include "../math/vector3i.h"
#include <core/reference.h> #include "core/reference.h"
#include <core/vector.h> #include "core/vector.h"
// Dense voxels data storage. // Dense voxels data storage.
// Organized in 8-bit channels like images, all optional. // Organized in 8-bit channels like images, all optional.