2017-01-02 02:15:57 +01:00
|
|
|
#ifndef VOXEL_PROVIDER_H
|
|
|
|
#define VOXEL_PROVIDER_H
|
|
|
|
|
2017-08-15 02:24:52 +02:00
|
|
|
#include <resource.h>
|
2017-01-02 02:15:57 +01:00
|
|
|
#include "voxel_buffer.h"
|
|
|
|
|
2017-08-15 02:24:52 +02:00
|
|
|
class VoxelProvider : public Resource {
|
|
|
|
GDCLASS(VoxelProvider, Resource)
|
2017-01-02 02:15:57 +01:00
|
|
|
public:
|
|
|
|
virtual void emerge_block(Ref<VoxelBuffer> out_buffer, Vector3i block_pos);
|
|
|
|
virtual void immerge_block(Ref<VoxelBuffer> buffer, Vector3i block_pos);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
void _emerge_block(Ref<VoxelBuffer> out_buffer, Vector3 block_pos);
|
|
|
|
void _immerge_block(Ref<VoxelBuffer> buffer, Vector3 block_pos);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VOXEL_PROVIDER_H
|