godot_voxel/streams/voxel_block_request.h
2022-01-09 22:46:26 +00:00

27 lines
532 B
C++

#ifndef VOXEL_BLOCK_REQUEST_H
#define VOXEL_BLOCK_REQUEST_H
#include "../storage/voxel_buffer.h"
#include "../util/math/vector3i.h"
#include "instance_data.h"
#include <memory>
namespace zylann::voxel {
// TODO Rename VoxelStreamBlockRequest
struct VoxelBlockRequest {
VoxelBufferInternal &voxel_buffer;
Vector3i origin_in_voxels;
int lod;
};
struct VoxelStreamInstanceDataRequest {
std::unique_ptr<InstanceBlockData> data;
Vector3i position;
uint8_t lod;
};
} // namespace zylann::voxel
#endif // VOXEL_BLOCK_REQUEST_H