Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MeshMakeData Struct Reference

#include <mapblock_mesh.h>

+ Collaboration diagram for MeshMakeData:

Public Member Functions

 MeshMakeData (const NodeDefManager *ndef, u16 side_length, bool use_shaders)
 
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 NodeDefManagernodedef
 
bool m_use_shaders
 

Constructor & Destructor Documentation

◆ MeshMakeData()

MeshMakeData::MeshMakeData ( const NodeDefManager * ndef,
u16 side_length,
bool use_shaders )

Member Function Documentation

◆ fillBlockData()

void MeshMakeData::fillBlockData ( const v3s16 & bp,
MapNode * data )

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

Referenced by MeshUpdateQueue::fillDataFromMapBlocks().

+ 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, MAP_BLOCKSIZE, and side_length.

Referenced by MeshUpdateQueue::fillDataFromMapBlocks().

+ 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::fillDataFromMapBlocks().

+ Here is the caller graph for this function:

◆ setSmoothLighting()

void MeshMakeData::setSmoothLighting ( bool smooth_lighting)

References m_smooth_lighting.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_blockpos

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

◆ 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

◆ nodedef

const NodeDefManager* MeshMakeData::nodedef

◆ side_length


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