#include <mapblock_mesh.h>
Public Member Functions | |
MeshMakeData (const NodeDefManager *ndef, u16 side_length) | |
void | fillBlockDataBegin (const v3s16 &blockpos) |
void | fillBlockData (const v3s16 &bp, MapNode *data) |
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 |
u16 | side_length |
const NodeDefManager * | nodedef |
MeshMakeData::MeshMakeData | ( | const NodeDefManager * | ndef, |
u16 | side_length ) |
References VoxelManipulator::copyFrom(), m_vmanip, and MAP_BLOCKSIZE.
Referenced by MeshUpdateQueue::fillDataFromMapBlocks().
void MeshMakeData::fillBlockDataBegin | ( | const v3s16 & | blockpos | ) |
References VoxelManipulator::addArea(), VoxelManipulator::clear(), m_blockpos, m_vmanip, MAP_BLOCKSIZE, and side_length.
Referenced by MeshUpdateQueue::fillDataFromMapBlocks().
void MeshMakeData::setCrack | ( | int | crack_level, |
v3s16 | crack_pos ) |
References m_blockpos, m_crack_pos_relative, and MAP_BLOCKSIZE.
Referenced by MeshUpdateQueue::fillDataFromMapBlocks().
void MeshMakeData::setSmoothLighting | ( | bool | smooth_lighting | ) |
References m_smooth_lighting.
Referenced by createSpecialNodeMesh(), and MeshUpdateQueue::fillDataFromMapBlocks().
Referenced by MapBlockMesh::MapBlockMesh(), fillBlockDataBegin(), get_solid_sides(), and setCrack().
Referenced by getNodeTileN(), setCrack(), and MapblockMeshGenerator::useTile().
bool MeshMakeData::m_smooth_lighting = false |
Referenced by MapblockMeshGenerator::drawAllfacesNode(), MapblockMeshGenerator::drawAutoLightedCuboid(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawLiquidBottom(), MapblockMeshGenerator::drawLiquidSides(), MapblockMeshGenerator::drawLiquidTop(), MapblockMeshGenerator::drawMeshNode(), MapblockMeshGenerator::drawNode(), MapblockMeshGenerator::drawPlantlikeRootedNode(), MapblockMeshGenerator::drawQuad(), MapblockMeshGenerator::drawSolidNode(), MapblockMeshGenerator::prepareLiquidNodeDrawing(), setSmoothLighting(), and MapblockMeshGenerator::useTile().
VoxelManipulator MeshMakeData::m_vmanip |
Referenced by MapBlockMesh::MapBlockMesh(), MapblockMeshGenerator::drawFencelikeNode(), MapblockMeshGenerator::drawFirelikeNode(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawGlasslikeNode(), MapblockMeshGenerator::drawNodeboxNode(), MapblockMeshGenerator::drawPlantlikeRootedNode(), MapblockMeshGenerator::drawSolidNode(), fillBlockData(), fillBlockDataBegin(), MapblockMeshGenerator::generate(), get_solid_sides(), MapblockMeshGenerator::getLiquidNeighborhood(), getSmoothLightCombined(), MapblockMeshGenerator::isSameRail(), and MapblockMeshGenerator::prepareLiquidNodeDrawing().
const NodeDefManager* MeshMakeData::nodedef |
Referenced by get_solid_sides(), getNodeTile(), getNodeTileN(), and getSmoothLightCombined().
u16 MeshMakeData::side_length |
Referenced by MapBlockMesh::MapBlockMesh(), fillBlockDataBegin(), MapblockMeshGenerator::generate(), and get_solid_sides().