Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ive/Text.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Text.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Text.cpp
r10762 r13041 34 34 else 35 35 out_THROW_EXCEPTION("Text::write(): Could not cast this osgText::Text to an osg::Drawable."); 36 36 37 37 // Write Text's properties. 38 38 if( getFont() ) … … 64 64 out->writeFloat(getMaximumWidth()); 65 65 out->writeFloat(getMaximumHeight()); 66 66 67 67 out->writeFloat(getLineSpacing()); 68 68 69 69 out->writeUInt(getAlignment()); 70 70 … … 123 123 124 124 //std::copy(textstring.begin(),textstring.end(),std::back_inserter(str)); 125 125 126 126 out->writeBool(true); 127 127 out->writeString(str); … … 131 131 // do it the hardway...output each character as an int 132 132 osg::ref_ptr<osg::UIntArray> strarr = new osg::UIntArray(textstring.size()); 133 133 134 134 for(itr=textstring.begin(); 135 135 itr!=textstring.end(); … … 216 216 setColorGradientMode((osgText::Text::ColorGradientMode) in->readUInt()); 217 217 218 osg::Vec4 colorGradientTopLeft,colorGradientBottomLeft,colorGradientBottomRight,colorGradientTopRight; 218 osg::Vec4 colorGradientTopLeft,colorGradientBottomLeft,colorGradientBottomRight,colorGradientTopRight; 219 219 colorGradientTopLeft = in->readVec4(); 220 220 colorGradientBottomLeft = in->readVec4();
