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

@@ -38,10 +38,6 @@ public:
virtual const char* libraryName() const { return "osgText"; }
void setColor(const osg::Vec4& color);
const osg::Vec4& getColor() const { return _color; }
/**
* Turns off writing to the depth buffer when rendering text. This only affects text
* with no backdrop or text using the DELAYED_DEPTH_WRITES implementation, since
@@ -351,7 +347,6 @@ protected:
String::iterator computeLastCharacterOnLine(osg::Vec2& cursor, String::iterator first,String::iterator last);
// members which have public access.
osg::Vec4 _color;
// iternal map used for rendering. Set up by the computeGlyphRepresentation() method.
mutable TextureGlyphQuadMap _textureGlyphQuadMap;