godot_voxel/streams/vox_loader.h

23 lines
471 B
C
Raw Normal View History

#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
2021-01-28 22:02:49 +00:00
// TODO Saving
private:
static void _bind_methods();
};
#endif // VOX_LOADER_H