Luanti 5.11.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_lingth, MeshGrid mesh_grid)
 
void fillBlockDataBegin (const v3s16 &blockpos)
 
void fillBlockData (const v3s16 &bp, MapNode *data)
 
void fillSingleNode (MapNode data, MapNode padding=MapNode(CONTENT_AIR))
 
void setCrack (int crack_level, v3s16 crack_pos)
 

Public Attributes

VoxelManipulator m_vmanip
 
v3s16 m_blockpos = v3s16(-1337,-1337,-1337)
 
u16 m_side_length
 
MeshGrid m_mesh_grid
 
v3s16 m_crack_pos_relative = v3s16(-1337,-1337,-1337)
 
bool m_generate_minimap = false
 
bool m_smooth_lighting = false
 
bool m_enable_water_reflections = false
 
const NodeDefManagerm_nodedef
 

Constructor & Destructor Documentation

◆ MeshMakeData()

MeshMakeData::MeshMakeData ( const NodeDefManager * ndef,
u16 side_lingth,
MeshGrid mesh_grid )

References m_side_length.

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_side_length, 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:

◆ fillSingleNode()

void MeshMakeData::fillSingleNode ( MapNode data,
MapNode padding = MapNode(CONTENT_AIR) )

References VoxelManipulator::addArea(), VoxelManipulator::clear(), VoxelArea::getVolume(), VoxelManipulator::m_area, m_blockpos, VoxelManipulator::m_data, VoxelManipulator::m_flags, m_vmanip, and VoxelManipulator::setNodeNoEmerge().

Referenced by createGenericNodeMesh().

+ 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:

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_enable_water_reflections

bool MeshMakeData::m_enable_water_reflections = false

◆ m_generate_minimap

bool MeshMakeData::m_generate_minimap = false

◆ m_mesh_grid

MeshGrid MeshMakeData::m_mesh_grid

◆ m_nodedef

const NodeDefManager* MeshMakeData::m_nodedef

◆ m_side_length

◆ m_smooth_lighting

◆ m_vmanip


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