From Gideon May, fixes to remain const base type instances in headers.

This commit is contained in:
Robert Osfield
2002-10-25 12:29:03 +00:00
parent 18d99c06e4
commit 55b2a5ff30
7 changed files with 21 additions and 17 deletions

View File

@@ -97,8 +97,8 @@ class OSGTEXT_EXPORT Text : public osg::Drawable
Font* getFont() { return _font.get(); }
const Font* getFont() const { return _font.get(); }
void setText(const char* text) { _text=text; }
void setText(const std::string& text) { _text=text; }
void setText(const char* text) { _text=text; _initAlignment=false; }
void setText(const std::string& text) { _text=text; _initAlignment=false; }
const std::string& getText() const { return _text; }
virtual void drawImmediateMode(osg::State& state);