Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
Nametag Struct Reference

#include <camera.h>

+ Collaboration diagram for Nametag:

Public Member Functions

video::SColor getBgColor (bool use_fallback) const
 

Public Attributes

scene::ISceneNode * parent_node = nullptr
 
std::string text
 
video::SColor textcolor
 
std::optional< video::SColor > bgcolor
 
std::optional< u32 > textsize
 
v3f pos
 
bool scale_z
 

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

Referenced by getBgColor().

◆ parent_node

scene::ISceneNode* Nametag::parent_node = nullptr

Referenced by Camera::addNametag().

◆ pos

v3f Nametag::pos

◆ scale_z

bool Nametag::scale_z

◆ text

std::string Nametag::text

◆ textcolor

video::SColor Nametag::textcolor

Referenced by getBgColor().

◆ textsize

std::optional<u32> Nametag::textsize

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