23 lines
469 B
C++
23 lines
469 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> voxels, Ref<VoxelColorPalette> palette);
|
|
// TODO Have chunked loading for better memory usage
|
|
// TODO Saving
|
|
|
|
private:
|
|
static void _bind_methods();
|
|
};
|
|
|
|
#endif // VOX_LOADER_H
|