#include <node_visuals.h>
|
| void | preUpdateTextures (const ContentFeatures &f, ITextureSource *tsrc, std::unordered_set< std::string > &pool, const TextureSettings &tsettings) |
| void | updateTextures (ContentFeatures &f, ITextureSource *tsrc, IShaderSource *shdsrc, Client *client, PreLoadedTextures *texture_pool, const TextureSettings &tsettings) |
| void | updateMesh (const std::string &mesh, float visual_scale, Client *client, const TextureSettings &tsettings) |
| void | collectMaterials (std::vector< u32 > &leaves_materials) |
◆ NodeVisuals()
| NodeVisuals::NodeVisuals |
( |
| ) |
|
|
default |
◆ ~NodeVisuals()
| NodeVisuals::~NodeVisuals |
( |
| ) |
|
◆ collectMaterials()
| void NodeVisuals::collectMaterials |
( |
std::vector< u32 > & | leaves_materials | ) |
|
|
private |
◆ DISABLE_CLASS_COPY()
◆ fillNodeVisuals()
| void NodeVisuals::fillNodeVisuals |
( |
NodeDefManager * | ndef, |
|
|
Client * | client, |
|
|
void * | progress_callback_args ) |
|
static |
Creates NodeVisuals for every content feature in the passed NodeDefManager.
- Parameters
-
References PreLoadedTextures::add(), ITextureSource::addArrayTexture(), NodeDefManager::applyFunction(), ContentFeatures::drawtype, getArrayTextureMax(), ITextureSource::getTextureDimensions(), idx, infostream, ContentFeatures::mesh, NDT_AIRLIKE, NDT_MESH, PreLoadedTextures::printStats(), TextureSettings::readSettings(), ITextureSource::setImageCaching(), NodeDefManager::size(), SORT_AND_UNIQUE, PreLoadedTexture::texture, PreLoadedTexture::texture_id, PreLoadedTexture::texture_layer_idx, verbosestream, and ContentFeatures::visual_scale.
Referenced by Client::afterContentReceived().
◆ getColor()
| video::SColor NodeVisuals::getColor |
( |
const ContentFeatures & | f, |
|
|
u8 | param2 ) const |
◆ preUpdateTextures()
References TileDef::animation, CF_SPECIAL_COUNT, ContentFeatures::drawtype, ITextureSource::FILTER_FOR_MESH, LEAVES_OPAQUE, LEAVES_SIMPLE, TextureSettings::leaves_style, TileDef::name, NDT_ALLFACES_OPTIONAL, ITextureSource::needFilterForMesh(), TAT_NONE, ContentFeatures::tiledef, ContentFeatures::tiledef_overlay, ContentFeatures::tiledef_special, and TileAnimationParams::type.
◆ updateMesh()
| void NodeVisuals::updateMesh |
( |
const std::string & | mesh, |
|
|
float | visual_scale, |
|
|
Client * | client, |
|
|
const TextureSettings & | tsettings ) |
|
private |
◆ updateTextures()
References ContentFeatures::alpha, alpha_mode_to_material_type(), ALPHAMODE_CLIP, ALPHAMODE_OPAQUE, ShaderFeatures::array_texture, TileDef::backface_culling, CF_SPECIAL_COUNT, ContentFeatures::color, TextureSettings::connected_glass, CPT2_COLOR, CPT2_COLORED_4DIR, CPT2_COLORED_DEGROTATE, CPT2_COLORED_FACEDIR, CPT2_COLORED_WALLMOUNTED, ContentFeatures::drawtype, TextureSettings::enable_minimap, fillTileAttribs(), ITextureSource::getPalette(), IShaderSource::getShader(), ITextureSource::getTextureAverageColor(), isWorldAligned(), LEAVES_FANCY, LEAVES_SIMPLE, TextureSettings::leaves_style, material_type_with_alpha(), minimap_color, TileDef::name, NDT_AIRLIKE, NDT_ALLFACES, NDT_ALLFACES_OPTIONAL, NDT_FENCELIKE, NDT_FIRELIKE, NDT_FLOWINGLIQUID, NDT_GLASSLIKE, NDT_GLASSLIKE_FRAMED, NDT_GLASSLIKE_FRAMED_OPTIONAL, NDT_LIQUID, NDT_MESH, NDT_NODEBOX, NDT_NORMAL, NDT_PLANTLIKE, NDT_PLANTLIKE_ROOTED, NDT_RAILLIKE, NDT_SIGNLIKE, NDT_TORCHLIKE, palette, ContentFeatures::palette_name, ContentFeatures::param_type_2, solidness, special_tiles, TILE_MATERIAL_LIQUID_OPAQUE, TILE_MATERIAL_LIQUID_TRANSPARENT, TILE_MATERIAL_WAVING_LEAVES, TILE_MATERIAL_WAVING_LIQUID_BASIC, TILE_MATERIAL_WAVING_LIQUID_OPAQUE, TILE_MATERIAL_WAVING_LIQUID_TRANSPARENT, TILE_MATERIAL_WAVING_PLANTS, ContentFeatures::tiledef, ContentFeatures::tiledef_overlay, ContentFeatures::tiledef_special, tiles, TextureSettings::translucent_liquids, visual_solidness, ContentFeatures::waving, and TextureSettings::world_aligned_mode.
◆ backface_culling
| bool NodeVisuals::backface_culling = true |
◆ mesh_ptr
| scene::SMesh* NodeVisuals::mesh_ptr = nullptr |
◆ minimap_color
| video::SColor NodeVisuals::minimap_color |
◆ palette
| std::vector<video::SColor>* NodeVisuals::palette = nullptr |
◆ solidness
| u8 NodeVisuals::solidness = 2 |
◆ special_tiles
◆ tiles
◆ visual_solidness
| u8 NodeVisuals::visual_solidness = 0 |
The documentation for this struct was generated from the following files: