Further work on new 3D text support
This commit is contained in:
@@ -16,8 +16,7 @@
|
||||
|
||||
|
||||
#include <osgText/TextBase>
|
||||
#include <osgText/Font3D>
|
||||
|
||||
#include <osgText/Font>
|
||||
|
||||
namespace osgText {
|
||||
|
||||
@@ -75,11 +74,7 @@ public:
|
||||
|
||||
/** Set the Font to use to render the text.
|
||||
* setFont(0) sets the use of the default font.*/
|
||||
inline void setFont(Font3D* font=0) { setFont(osg::ref_ptr<Font3D>(font)); };
|
||||
|
||||
/** Set the Font to use to render the text.*/
|
||||
void setFont(osg::ref_ptr<Font3D> font);
|
||||
|
||||
void setFont(Font* font);
|
||||
|
||||
/** Set the font, loaded from the specified front file, to use to render the text,
|
||||
* setFont("") sets the use of the default font.
|
||||
@@ -87,7 +82,7 @@ public:
|
||||
void setFont(const std::string& fontfile);
|
||||
|
||||
/** Get the font. Return 0 if default is being used.*/
|
||||
const Font3D* getFont() const { return _font.get(); }
|
||||
const Font* getFont() const { return _font.get(); }
|
||||
|
||||
|
||||
|
||||
@@ -156,7 +151,7 @@ protected:
|
||||
|
||||
TextRenderInfo _textRenderInfo;
|
||||
|
||||
osg::ref_ptr<Font3D> _font;
|
||||
osg::ref_ptr<Font> _font;
|
||||
|
||||
float _characterDepth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user