#include "node_visuals.h"#include "mesh.h"#include "shader.h"#include "client.h"#include "renderingengine.h"#include "texturesource.h"#include "wieldmesh.h"#include "tile.h"#include <IMeshManipulator.h>#include <SMesh.h>#include <SkinnedMesh.h>
Include dependency graph for node_visuals.cpp:Classes | |
| struct | TileAttribContext |
| struct | PreLoadedTexture |
| struct | PreLoadedTextures |
Typedefs | |
| using | GetShaderCallback = std::function<u32 (bool )> |
Functions | |
| static void | fillTileAttribs (TileLayer *layer, TileAttribContext context, const TileSpec &tile, const TileDef &tiledef, MaterialType material_type, GetShaderCallback get_shader) |
| static bool | isWorldAligned (AlignStyle style, WorldAlignMode mode, NodeDrawType drawtype) |
| static size_t | getArrayTextureMax (IShaderSource *shdsrc) |
| using GetShaderCallback = std::function<u32 (bool )> |
|
static |
References TileDef::animation, TileLayer::animation_frame_count, TileLayer::animation_frame_length_ms, AUTOSCALE_ENABLE, AUTOSCALE_FORCE, TileDef::backface_culling, TileAttribContext::base_color, TileDef::color, TileLayer::color, createAnimationFrames(), PreLoadedTextures::find(), TileLayer::frames, TileDef::has_color, TileLayer::has_color, MATERIAL_FLAG_ANIMATION, MATERIAL_FLAG_BACKFACE_CULLING, MATERIAL_FLAG_TILEABLE_HORIZONTAL, MATERIAL_FLAG_TILEABLE_VERTICAL, TileLayer::material_flags, TileLayer::material_type, TileDef::name, TileDef::scale, TileLayer::scale, TileLayer::shader_id, TAT_NONE, TileLayer::texture, TileLayer::texture_id, TileLayer::texture_layer_idx, TileAttribContext::texture_pool, TileDef::tileable_horizontal, TileDef::tileable_vertical, TileAttribContext::tsettings, TileAttribContext::tsrc, TileAnimationParams::type, and TileSpec::world_aligned.
Referenced by NodeVisuals::updateTextures().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References g_settings, RenderingEngine::get_video_driver(), Settings::getU32(), IShaderSource::supportsSampler2DArray(), and TileLayer::texture_layer_idx.
Referenced by NodeVisuals::fillNodeVisuals().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References ALIGN_STYLE_USER_DEFINED, ALIGN_STYLE_WORLD, NDT_NODEBOX, NDT_NORMAL, WORLDALIGN_DISABLE, WORLDALIGN_FORCE, and WORLDALIGN_FORCE_NODEBOX.
Referenced by NodeVisuals::updateTextures().
Here is the caller graph for this function: