godot_voxel/register_types.cpp

63 lines
1.7 KiB
C++
Raw Normal View History

#include "register_types.h"
#include "meshers/blocky/voxel_mesher_blocky.h"
#include "meshers/dmc/voxel_mesher_dmc.h"
#include "meshers/transvoxel/voxel_mesher_transvoxel.h"
#include "streams/voxel_stream_block_files.h"
#include "streams/voxel_stream_file.h"
2019-05-25 08:16:03 -07:00
#include "streams/voxel_stream_image.h"
#include "streams/voxel_stream_noise.h"
#include "streams/voxel_stream_region_files.h"
2019-05-25 08:16:03 -07:00
#include "streams/voxel_stream_test.h"
#include "terrain/voxel_box_mover.h"
#include "terrain/voxel_lod_terrain.h"
#include "terrain/voxel_map.h"
#include "terrain/voxel_terrain.h"
#include "voxel_buffer.h"
2019-04-22 12:15:46 -07:00
#include "voxel_isosurface_tool.h"
#include "voxel_library.h"
void register_voxel_types() {
// Storage
2017-03-24 17:23:36 -07:00
ClassDB::register_class<VoxelBuffer>();
ClassDB::register_class<VoxelMap>();
// Voxel types
ClassDB::register_class<Voxel>();
ClassDB::register_class<VoxelLibrary>();
// Nodes
2017-03-24 17:23:36 -07:00
ClassDB::register_class<VoxelTerrain>();
ClassDB::register_class<VoxelLodTerrain>();
// Streams
2019-05-25 08:07:38 -07:00
ClassDB::register_class<VoxelStream>();
ClassDB::register_class<VoxelStreamTest>();
ClassDB::register_class<VoxelStreamImage>();
ClassDB::register_class<VoxelStreamNoise>();
ClassDB::register_class<VoxelStreamFile>();
ClassDB::register_class<VoxelStreamBlockFiles>();
ClassDB::register_class<VoxelStreamRegionFiles>();
// Helpers
ClassDB::register_class<VoxelBoxMover>();
2019-04-22 12:15:46 -07:00
ClassDB::register_class<VoxelIsoSurfaceTool>();
// Meshers
ClassDB::register_class<VoxelMesher>();
ClassDB::register_class<VoxelMesherBlocky>();
ClassDB::register_class<VoxelMesherTransvoxel>();
ClassDB::register_class<VoxelMesherDMC>();
2019-08-29 14:55:02 -07:00
#ifdef TOOLS_ENABLED
VoxelDebug::create_debug_box_mesh();
#endif
}
void unregister_voxel_types() {
2019-08-29 14:55:02 -07:00
#ifdef TOOLS_ENABLED
VoxelDebug::free_debug_box_mesh();
#endif
}