Minetest  5.4.0
Nametag Struct Reference

#include <camera.h>

+ Collaboration diagram for Nametag:

Public Member Functions

 Nametag (scene::ISceneNode *a_parent_node, const std::string &text, const video::SColor &textcolor, const Optional< video::SColor > &bgcolor, const v3f &pos)
 
video::SColor getBgColor (bool use_fallback) const
 

Public Attributes

scene::ISceneNode * parent_node
 
std::string text
 
video::SColor textcolor
 
Optional< video::SColor > bgcolor
 
v3f pos
 

Constructor & Destructor Documentation

◆ Nametag()

Nametag::Nametag ( scene::ISceneNode *  a_parent_node,
const std::string &  text,
const video::SColor &  textcolor,
const Optional< video::SColor > &  bgcolor,
const v3f pos 
)
inline

Member Function Documentation

◆ getBgColor()

video::SColor Nametag::getBgColor ( bool  use_fallback) const
inline

References bgcolor, textcolor, and Optional< T >::value().

+ Here is the call graph for this function:

Member Data Documentation

◆ bgcolor

Optional<video::SColor> Nametag::bgcolor

◆ parent_node

scene::ISceneNode* Nametag::parent_node

◆ pos

v3f Nametag::pos

◆ text

std::string Nametag::text

◆ textcolor

video::SColor Nametag::textcolor

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