11#include <EMaterialTypes.h>
12#include <IMeshSceneNode.h>
72 scene::IMesh *
mesh =
nullptr;
96 void setExtruded(
const std::string &imagename,
const std::string &overlay_image,
99 bool check_wield_image =
true);
146 const std::string &overlay_name);
156 bool set_material,
const video::E_MATERIAL_TYPE *mattype,
157 std::vector<ItemPartColor> *colors,
bool apply_scale =
false);
Definition texturesource.h:36
Definition wieldmesh.h:34
video::SColor last_colorized
Definition wieldmesh.h:42
bool needColorize(video::SColor target)
Definition wieldmesh.h:61
video::SColor override_color
Definition wieldmesh.h:38
void applyOverride(video::SColor &dest) const
Definition wieldmesh.h:56
ItemPartColor(bool override, video::SColor color)
Definition wieldmesh.h:52
bool override_color_set
Definition wieldmesh.h:45
bool last_colorized_set
Definition wieldmesh.h:46
Definition dynamicshadowsrender.h:39
Definition wieldmesh.h:90
video::SColor m_base_color
Definition wieldmesh.h:133
bool m_trilinear_filter
Definition wieldmesh.h:123
void setCube(const ContentFeatures &f, v3f wield_scale)
Definition wieldmesh.cpp:230
void setColor(video::SColor color)
Definition wieldmesh.cpp:479
WieldMeshSceneNode(scene::ISceneManager *mgr, s32 id=-1)
Definition wieldmesh.cpp:183
ShadowRenderer * m_shadow
Definition wieldmesh.h:140
void setExtruded(const std::string &imagename, const std::string &overlay_image, v3f wield_scale, ITextureSource *tsrc, u8 num_frames)
Definition wieldmesh.cpp:242
scene::IMeshSceneNode * m_meshnode
Definition wieldmesh.h:117
void setItem(const ItemStack &item, Client *client, bool check_wield_image=true)
Definition wieldmesh.cpp:345
virtual void render()
Definition wieldmesh.cpp:526
virtual const aabb3f & getBoundingBox() const
Definition wieldmesh.h:111
scene::IMesh * getMesh()
Definition wieldmesh.h:107
aabb3f m_bounding_box
Definition wieldmesh.h:138
bool m_enable_shaders
Definition wieldmesh.h:120
video::E_MATERIAL_TYPE m_material_type
Definition wieldmesh.h:118
void setNodeLightColor(video::SColor color)
Definition wieldmesh.cpp:511
bool m_anisotropic_filter
Definition wieldmesh.h:121
bool m_bilinear_filter
Definition wieldmesh.h:122
virtual ~WieldMeshSceneNode()
Definition wieldmesh.cpp:218
std::vector< ItemPartColor > m_colors
Definition wieldmesh.h:128
void changeToMesh(scene::IMesh *mesh)
Definition wieldmesh.cpp:532
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30
Definition clientmap.h:30
Definition wieldmesh.h:71
bool needs_shading
Definition wieldmesh.h:81
std::vector< ItemPartColor > buffer_colors
Definition wieldmesh.h:76
scene::IMesh * mesh
Definition wieldmesh.h:72
Definition inventory.h:19
void postProcessNodeMesh(scene::SMesh *mesh, const ContentFeatures &f, bool use_shaders, bool set_material, const video::E_MATERIAL_TYPE *mattype, std::vector< ItemPartColor > *colors, bool apply_scale=false)
Definition wieldmesh.cpp:706
void getItemMesh(Client *client, const ItemStack &item, ItemMesh *result)
Definition wieldmesh.cpp:552
scene::SMesh * getExtrudedMesh(ITextureSource *tsrc, const std::string &imagename, const std::string &overlay_name)
Definition wieldmesh.cpp:662