godot_voxel/streams/vox_loader.h
Marc Gilleron 30db0c5193 Split VoxelBuffer in two, script-facing wrapper and internal.
The internal is the main use within the voxel engine,
and does not inherit Reference.
2021-09-26 04:14:50 +01:00

23 lines
471 B
C++

#ifndef VOX_LOADER_H
#define VOX_LOADER_H
#include <core/reference.h>
class VoxelBuffer;
class VoxelColorPalette;
// Simple loader for MagicaVoxel
class VoxelVoxLoader : public Reference {
GDCLASS(VoxelVoxLoader, Reference);
public:
Error load_from_file(String fpath, Ref<VoxelBuffer> p_voxels, Ref<VoxelColorPalette> palette);
// TODO Have chunked loading for better memory usage
// TODO Saving
private:
static void _bind_methods();
};
#endif // VOX_LOADER_H