Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGFONT_H
17 #define SURGSIM_GRAPHICS_OSGFONT_H
21 #include <osg/ref_ptr>
46 osg::ref_ptr<osgText::Font>
getOsgFont()
const;
51 bool doLoad(
const std::string& filePath)
override;
osg::ref_ptr< osgText::Font > getOsgFont() const
Definition: OsgFont.cpp:55
virtual ~OsgFont()
Destructor.
Definition: OsgFont.cpp:35
Osg specialization of the Font class, supports osgText::Font.
Definition: OsgFont.h:34
bool doLoad(const std::string &filePath) override
Derived classes will overwrite this method to do actual loading.
Definition: OsgFont.cpp:40
Definition: CompoundShapeToGraphics.cpp:29
osg::ref_ptr< osgText::Font > m_font
Osg pointer to the font structure.
Definition: OsgFont.h:56
OsgFont()
Constructor.
Definition: OsgFont.cpp:30
SURGSIM_CLASSNAME(SurgSim::Graphics::OsgFont)
Abstract base class for the Font Asset, fonts are typefaces that can be used to render text on screen...
Definition: Font.h:27