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);
145 const std::string &overlay_name);
155 bool set_material,
const video::E_MATERIAL_TYPE *mattype,
156 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:132
bool m_trilinear_filter
Definition wieldmesh.h:122
void setCube(const ContentFeatures &f, v3f wield_scale)
Definition wieldmesh.cpp:229
void setColor(video::SColor color)
Definition wieldmesh.cpp:476
WieldMeshSceneNode(scene::ISceneManager *mgr, s32 id=-1)
Definition wieldmesh.cpp:183
ShadowRenderer * m_shadow
Definition wieldmesh.h:139
void setExtruded(const std::string &imagename, const std::string &overlay_image, v3f wield_scale, ITextureSource *tsrc, u8 num_frames)
Definition wieldmesh.cpp:241
scene::IMeshSceneNode * m_meshnode
Definition wieldmesh.h:117
void setItem(const ItemStack &item, Client *client, bool check_wield_image=true)
Definition wieldmesh.cpp:344
virtual void render()
Definition wieldmesh.cpp:518
virtual const aabb3f & getBoundingBox() const
Definition wieldmesh.h:111
scene::IMesh * getMesh()
Definition wieldmesh.h:107
aabb3f m_bounding_box
Definition wieldmesh.h:137
video::E_MATERIAL_TYPE m_material_type
Definition wieldmesh.h:118
void setNodeLightColor(video::SColor color)
Definition wieldmesh.cpp:505
bool m_anisotropic_filter
Definition wieldmesh.h:120
bool m_bilinear_filter
Definition wieldmesh.h:121
virtual ~WieldMeshSceneNode()
Definition wieldmesh.cpp:217
std::vector< ItemPartColor > m_colors
Definition wieldmesh.h:127
void changeToMesh(scene::IMesh *mesh)
Definition wieldmesh.cpp:524
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 set_material, const video::E_MATERIAL_TYPE *mattype, std::vector< ItemPartColor > *colors, bool apply_scale=false)
Definition wieldmesh.cpp:693
void getItemMesh(Client *client, const ItemStack &item, ItemMesh *result)
Definition wieldmesh.cpp:539
scene::SMesh * getExtrudedMesh(ITextureSource *tsrc, const std::string &imagename, const std::string &overlay_name)
Definition wieldmesh.cpp:649