godot_voxel/providers/voxel_provider.h

21 lines
614 B
C
Raw Normal View History

#ifndef VOXEL_PROVIDER_H
#define VOXEL_PROVIDER_H
#include "../voxel_buffer.h"
2019-04-24 02:29:47 +02:00
#include <core/resource.h>
class VoxelProvider : public Resource {
GDCLASS(VoxelProvider, Resource)
public:
2019-04-29 22:57:39 +02:00
virtual void emerge_block(Ref<VoxelBuffer> out_buffer, Vector3i origin_in_voxels, int lod);
virtual void immerge_block(Ref<VoxelBuffer> buffer, Vector3i origin_in_voxels, int lod);
protected:
static void _bind_methods();
2019-04-29 22:57:39 +02:00
void _emerge_block(Ref<VoxelBuffer> out_buffer, Vector3 origin_in_voxels, int lod);
void _immerge_block(Ref<VoxelBuffer> buffer, Vector3 origin_in_voxels, int lod);
};
#endif // VOXEL_PROVIDER_H