agx::Vector< ReferencedTextObserver > m_referencedTexts
A class for having text elements with reference counting.
agx::String m_constantText
osg::observer_ptr< agxOSG::SceneDecorator > m_sceneDecorator
HudTextManager is a class that inherits from agxSDK::StepEventListener and makes it easier to manipul...
AGXOSG_EXPORT bool addText(const agxCollide::Geometry *geometry, osg::Group *root, const std::string &text, const agx::Vec3 &relPosition=agx::Vec3(0, 0, 0), const agx::Vec4f &color=agxRender::Color::Yellow(), agx::Real size=0.2)
Add text relative to an geometry.