2020-01-26 14:34:26 -08:00
|
|
|
#ifndef VOXEL_BLOCK_REQUEST_H
|
|
|
|
#define VOXEL_BLOCK_REQUEST_H
|
|
|
|
|
2020-09-14 11:33:02 -07:00
|
|
|
#include "../storage/voxel_buffer.h"
|
2021-02-17 12:34:35 -08:00
|
|
|
#include "../util/math/vector3i.h"
|
2021-02-07 09:22:50 -08:00
|
|
|
#include "instance_data.h"
|
|
|
|
#include <memory>
|
2020-01-26 14:34:26 -08:00
|
|
|
|
2020-08-25 15:00:38 -07:00
|
|
|
// TODO Rename VoxelStreamBlockRequest
|
2020-01-26 14:34:26 -08:00
|
|
|
struct VoxelBlockRequest {
|
2021-09-25 20:14:50 -07:00
|
|
|
VoxelBufferInternal &voxel_buffer;
|
2020-01-26 14:34:26 -08:00
|
|
|
Vector3i origin_in_voxels;
|
|
|
|
int lod;
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:22:50 -08:00
|
|
|
struct VoxelStreamInstanceDataRequest {
|
|
|
|
std::unique_ptr<VoxelInstanceBlockData> data;
|
|
|
|
Vector3i position;
|
|
|
|
uint8_t lod;
|
|
|
|
};
|
|
|
|
|
2020-01-26 14:34:26 -08:00
|
|
|
#endif // VOXEL_BLOCK_REQUEST_H
|