#include <mapblock_mesh.h>
Public Member Functions | |
MeshMakeData (Client *client, bool use_shaders) | |
void | fillBlockDataBegin (const v3s16 &blockpos) |
void | fillBlockData (const v3s16 &block_offset, MapNode *data) |
void | fill (MapBlock *block) |
void | setCrack (int crack_level, v3s16 crack_pos) |
void | setSmoothLighting (bool smooth_lighting) |
Public Attributes | |
VoxelManipulator | m_vmanip |
v3s16 | m_blockpos = v3s16(-1337,-1337,-1337) |
v3s16 | m_crack_pos_relative = v3s16(-1337,-1337,-1337) |
bool | m_smooth_lighting = false |
Client * | m_client |
bool | m_use_shaders |
MeshMakeData::MeshMakeData | ( | Client * | client, |
bool | use_shaders | ||
) |
void MeshMakeData::fill | ( | MapBlock * | block | ) |
References dir(), fillBlockData(), fillBlockDataBegin(), g_26dirs, Map::getBlockNoCreateNoEx(), MapBlock::getData(), MapBlock::getParent(), MapBlock::getPos(), and m_blockpos.
References VoxelManipulator::copyFrom(), m_blockpos, m_vmanip, and MAP_BLOCKSIZE.
Referenced by fill(), and MeshUpdateQueue::fillDataFromMapBlockCache().
void MeshMakeData::fillBlockDataBegin | ( | const v3s16 & | blockpos | ) |
References VoxelManipulator::addArea(), VoxelManipulator::clear(), m_blockpos, m_vmanip, and MAP_BLOCKSIZE.
Referenced by fill(), and MeshUpdateQueue::fillDataFromMapBlockCache().
void MeshMakeData::setCrack | ( | int | crack_level, |
v3s16 | crack_pos | ||
) |
References m_blockpos, m_crack_pos_relative, and MAP_BLOCKSIZE.
Referenced by MeshUpdateQueue::fillDataFromMapBlockCache().
void MeshMakeData::setSmoothLighting | ( | bool | smooth_lighting | ) |
References m_smooth_lighting.
Referenced by createSpecialNodeMesh(), and MeshUpdateQueue::fillDataFromMapBlockCache().
Client* MeshMakeData::m_client |
Referenced by getNodeTileN(), setCrack(), and MapblockMeshGenerator::useTile().
bool MeshMakeData::m_smooth_lighting = false |
Referenced by MapblockMeshGenerator::MapblockMeshGenerator(), MapblockMeshGenerator::drawAutoLightedCuboid(), MapblockMeshGenerator::drawCuboid(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawLiquidBottom(), MapblockMeshGenerator::drawLiquidSides(), MapblockMeshGenerator::drawLiquidTop(), MapblockMeshGenerator::drawMeshNode(), MapblockMeshGenerator::drawNode(), MapblockMeshGenerator::drawPlantlikeRootedNode(), MapblockMeshGenerator::drawQuad(), getTileInfo(), MapblockMeshGenerator::prepareLiquidNodeDrawing(), setSmoothLighting(), and MapblockMeshGenerator::useTile().
bool MeshMakeData::m_use_shaders |
Referenced by MapBlockMesh::MapBlockMesh().
VoxelManipulator MeshMakeData::m_vmanip |
Referenced by MapBlockMesh::MapBlockMesh(), MapblockMeshGenerator::drawFencelikeNode(), MapblockMeshGenerator::drawFirelikeNode(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawGlasslikeNode(), MapblockMeshGenerator::drawNodeboxNode(), MapblockMeshGenerator::drawPlantlikeRootedNode(), fillBlockData(), fillBlockDataBegin(), MapblockMeshGenerator::generate(), MapblockMeshGenerator::getLiquidNeighborhood(), getSmoothLightCombined(), getTileInfo(), MapblockMeshGenerator::isSameRail(), and MapblockMeshGenerator::prepareLiquidNodeDrawing().