Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
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 std::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
 
std::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 std::optional< video::SColor > & bgcolor,
const v3f & pos )
inline

Member Function Documentation

◆ getBgColor()

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

References bgcolor, and textcolor.

Member Data Documentation

◆ bgcolor

std::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: