#include <mesh_generator_thread.h>
Public Member Functions | |
| QueuedMeshUpdate ()=default | |
| ~QueuedMeshUpdate () | |
| void | retrieveBlocks (Map *map, u16 cell_size) |
| Get blocks needed for this mesh update from the map. | |
| void | dropBlocks () |
| Drop block references. | |
| bool | checkSkip (u16 cell_size) |
| Check if the blocks that would comprise the mesh are all air, so the update can be skipped entirely. | |
Public Attributes | |
| v3s16 | p = v3s16(-1337, -1337, -1337) |
| int | crack_level = -1 |
| v3s16 | crack_pos |
| MeshMakeData * | data = nullptr |
| std::vector< MapBlock * > | map_blocks |
| u16 | epoch = U16_MAX |
| bool | urgent = false |
|
default |
References QueuedMeshUpdate(), checkSkip(), dropBlocks(), and retrieveBlocks().
Referenced by QueuedMeshUpdate(), MeshUpdateQueue::addBlock(), and MeshUpdateQueue::reAddBlock().
| QueuedMeshUpdate::~QueuedMeshUpdate | ( | ) |
References data.
| bool QueuedMeshUpdate::checkSkip | ( | u16 | cell_size | ) |
Check if the blocks that would comprise the mesh are all air, so the update can be skipped entirely.
| cell_size | mesh grid cell size |
References map_blocks, and p.
Referenced by QueuedMeshUpdate().
| void QueuedMeshUpdate::dropBlocks | ( | ) |
Drop block references.
References map_blocks.
Referenced by QueuedMeshUpdate().
| void QueuedMeshUpdate::retrieveBlocks | ( | Map * | map, |
| u16 | cell_size ) |
Get blocks needed for this mesh update from the map.
Blocks that were already loaded are skipped.
| map | Map |
| cell_size | mesh grid cell size |
References Map::getBlockNoCreateNoEx(), map_blocks, p, and MapBlock::refGrab().
Referenced by QueuedMeshUpdate().
| int QueuedMeshUpdate::crack_level = -1 |
Referenced by MeshUpdateQueue::fillDataFromMapBlocks().
| v3s16 QueuedMeshUpdate::crack_pos |
Referenced by MeshUpdateQueue::fillDataFromMapBlocks().
| MeshMakeData* QueuedMeshUpdate::data = nullptr |
| u16 QueuedMeshUpdate::epoch = U16_MAX |
Referenced by MeshUpdateWorkerThread::doUpdate(), and MeshUpdateQueue::pop().
| std::vector<MapBlock*> QueuedMeshUpdate::map_blocks |
| bool QueuedMeshUpdate::urgent = false |
Referenced by MeshUpdateWorkerThread::doUpdate().