Moved text color into TextBase, added support for colour into Text3D

This commit is contained in:
Robert Osfield
2010-11-18 17:59:55 +00:00
parent a5b83edc76
commit 5849634082
5 changed files with 13 additions and 14 deletions

View File

@@ -36,7 +36,8 @@ public:
virtual const char* className() const { return "TextBase"; }
virtual const char* libraryName() const { return "osgText"; }
void setColor(const osg::Vec4& color);
const osg::Vec4& getColor() const { return _color; }
/** Set the Font to use to render the text.
* setFont(0) sets the use of the default font.*/
@@ -279,6 +280,7 @@ protected:
// members which have public access.
osg::Vec4 _color;
osg::ref_ptr<Font> _font;
osg::ref_ptr<Style> _style;
FontResolution _fontSize;