Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ItemPartColor Class Reference

#include <wieldmesh.h>

Public Member Functions

 ItemPartColor ()=default
 
 ItemPartColor (bool override, video::SColor color)
 
void applyOverride (video::SColor &dest) const
 
bool needColorize (video::SColor target)
 

Private Attributes

video::SColor override_color
 
video::SColor last_colorized
 
bool override_color_set = false
 
bool last_colorized_set = false
 

Constructor & Destructor Documentation

◆ ItemPartColor() [1/2]

ItemPartColor::ItemPartColor ( )
default

◆ ItemPartColor() [2/2]

ItemPartColor::ItemPartColor ( bool override,
video::SColor color )
inline

Member Function Documentation

◆ applyOverride()

void ItemPartColor::applyOverride ( video::SColor & dest) const
inline

◆ needColorize()

bool ItemPartColor::needColorize ( video::SColor target)
inline

Member Data Documentation

◆ last_colorized

video::SColor ItemPartColor::last_colorized
private

Referenced by needColorize().

◆ last_colorized_set

bool ItemPartColor::last_colorized_set = false
private

Referenced by needColorize().

◆ override_color

video::SColor ItemPartColor::override_color
private

Referenced by applyOverride().

◆ override_color_set

bool ItemPartColor::override_color_set = false
private

Referenced by applyOverride().


The documentation for this class was generated from the following file: