Minetest  5.4.0
MeshMakeData Struct Reference

#include <mapblock_mesh.h>

+ Collaboration diagram for MeshMakeData:

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
 
Clientm_client
 
bool m_use_shaders
 

Constructor & Destructor Documentation

◆ MeshMakeData()

MeshMakeData::MeshMakeData ( Client client,
bool  use_shaders 
)

Member Function Documentation

◆ fill()

void MeshMakeData::fill ( MapBlock block)

References dir(), fillBlockData(), fillBlockDataBegin(), g_26dirs, Map::getBlockNoCreateNoEx(), MapBlock::getData(), MapBlock::getParent(), MapBlock::getPos(), and m_blockpos.

+ Here is the call graph for this function:

◆ fillBlockData()

void MeshMakeData::fillBlockData ( const v3s16 block_offset,
MapNode data 
)

References VoxelManipulator::copyFrom(), m_blockpos, m_vmanip, and MAP_BLOCKSIZE.

Referenced by fill(), and MeshUpdateQueue::fillDataFromMapBlockCache().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillBlockDataBegin()

void MeshMakeData::fillBlockDataBegin ( const v3s16 blockpos)

References VoxelManipulator::addArea(), VoxelManipulator::clear(), m_blockpos, m_vmanip, and MAP_BLOCKSIZE.

Referenced by fill(), and MeshUpdateQueue::fillDataFromMapBlockCache().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCrack()

void MeshMakeData::setCrack ( int  crack_level,
v3s16  crack_pos 
)

References m_blockpos, m_crack_pos_relative, and MAP_BLOCKSIZE.

Referenced by MeshUpdateQueue::fillDataFromMapBlockCache().

+ Here is the caller graph for this function:

◆ setSmoothLighting()

void MeshMakeData::setSmoothLighting ( bool  smooth_lighting)

References m_smooth_lighting.

Referenced by createSpecialNodeMesh(), and MeshUpdateQueue::fillDataFromMapBlockCache().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_blockpos

◆ m_client

◆ m_crack_pos_relative

v3s16 MeshMakeData::m_crack_pos_relative = v3s16(-1337,-1337,-1337)

◆ m_smooth_lighting

◆ m_use_shaders

bool MeshMakeData::m_use_shaders

◆ m_vmanip


The documentation for this struct was generated from the following files: