#include <mapblock_mesh.h>
|
scene::IMesh * | m_mesh [MAX_TILE_LAYERS] |
|
MinimapMapblock * | m_minimap_mapblock |
|
ITextureSource * | m_tsrc |
|
IShaderSource * | m_shdrsrc |
|
bool | m_enable_shaders |
|
bool | m_enable_vbo |
|
bool | m_has_animation |
|
int | m_animation_force_timer |
|
int | m_last_crack |
|
std::map< std::pair< u8, u32 >, std::string > | m_crack_materials |
|
std::map< std::pair< u8, u32 >, TileLayer > | m_animation_tiles |
|
std::map< std::pair< u8, u32 >, int > | m_animation_frames |
|
std::map< std::pair< u8, u32 >, int > | m_animation_frame_offsets |
|
u32 | m_last_daynight_ratio |
|
std::map< std::pair< u8, u32 >, std::map< u32, video::SColor > > | m_daynight_diffs |
|
◆ MapBlockMesh()
References MeshCollector::append(), applyTileColor(), final_color_blend(), g_settings, MapblockMeshGenerator::generate(), get_sunlight_color(), Settings::getBool(), Client::getMinimap(), MinimapMapblock::getMinimapNodes(), IShaderSource::getShaderInfo(), ITextureSource::getTextureForMesh(), ITextureSource::getTextureName(), m_animation_frame_offsets, m_animation_frames, m_animation_tiles, MeshMakeData::m_blockpos, MeshMakeData::m_client, m_crack_materials, m_daynight_diffs, m_enable_shaders, m_enable_vbo, m_has_animation, m_mesh, m_minimap_mapblock, m_shdrsrc, m_tsrc, MeshMakeData::m_use_shaders, MeshMakeData::m_vmanip, MAP_BLOCKSIZE, ShaderInfo::material, MATERIAL_FLAG_ANIMATION, MATERIAL_FLAG_CRACK, MATERIAL_FLAG_CRACK_OVERLAY, MAX_TILE_LAYERS, noise3d(), p(), MeshCollector::prebuffers, and updateAllFastFaceRows().
◆ ~MapBlockMesh()
MapBlockMesh::~MapBlockMesh |
( |
| ) |
|
◆ animate()
bool MapBlockMesh::animate |
( |
bool |
faraway, |
|
|
float |
time, |
|
|
int |
crack, |
|
|
u32 |
daynight_ratio |
|
) |
| |
References TileLayer::animation_frame_count, TileLayer::animation_frame_length_ms, final_color_blend(), FrameSpec::flags_texture, TileLayer::frames, get_sunlight_color(), ITextureSource::getTextureForMesh(), m_animation_force_timer, m_animation_frame_offsets, m_animation_frames, m_animation_tiles, m_crack_materials, m_daynight_diffs, m_enable_shaders, m_enable_vbo, m_has_animation, m_last_crack, m_last_daynight_ratio, m_mesh, m_tsrc, myrand_range(), FrameSpec::normal_texture, FrameSpec::texture, TileLayer::texture, and TileLayer::texture_id.
Referenced by ClientMap::renderMap().
◆ decreaseAnimationForceTimer()
void MapBlockMesh::decreaseAnimationForceTimer |
( |
| ) |
|
|
inline |
◆ getMesh() [1/2]
scene::IMesh* MapBlockMesh::getMesh |
( |
| ) |
|
|
inline |
◆ getMesh() [2/2]
scene::IMesh* MapBlockMesh::getMesh |
( |
u8 |
layer | ) |
|
|
inline |
◆ isAnimationForced()
bool MapBlockMesh::isAnimationForced |
( |
| ) |
const |
|
inline |
◆ moveMinimapMapblock()
◆ m_animation_force_timer
int MapBlockMesh::m_animation_force_timer |
|
private |
◆ m_animation_frame_offsets
std::map<std::pair<u8, u32>, int> MapBlockMesh::m_animation_frame_offsets |
|
private |
◆ m_animation_frames
std::map<std::pair<u8, u32>, int> MapBlockMesh::m_animation_frames |
|
private |
◆ m_animation_tiles
std::map<std::pair<u8, u32>, TileLayer> MapBlockMesh::m_animation_tiles |
|
private |
◆ m_crack_materials
std::map<std::pair<u8, u32>, std::string> MapBlockMesh::m_crack_materials |
|
private |
◆ m_daynight_diffs
std::map<std::pair<u8, u32>, std::map<u32, video::SColor > > MapBlockMesh::m_daynight_diffs |
|
private |
◆ m_enable_shaders
bool MapBlockMesh::m_enable_shaders |
|
private |
◆ m_enable_vbo
bool MapBlockMesh::m_enable_vbo |
|
private |
◆ m_has_animation
bool MapBlockMesh::m_has_animation |
|
private |
◆ m_last_crack
int MapBlockMesh::m_last_crack |
|
private |
◆ m_last_daynight_ratio
u32 MapBlockMesh::m_last_daynight_ratio |
|
private |
◆ m_mesh
◆ m_minimap_mapblock
◆ m_shdrsrc
◆ m_tsrc
The documentation for this class was generated from the following files: