Changeset 11734 for OpenSceneGraph/trunk/examples/osgtext3D/osgtext3D.cpp
- Timestamp:
- 09/03/10 17:03:42 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgtext3D/osgtext3D.cpp
r11731 r11734 168 168 while (arguments.read("-w",word)) {} 169 169 170 osg::ref_ptr<osgText::Style> style = new osgText::Style; 171 172 float thickness = 0.0f; 173 while(arguments.read("--thickness",thickness)) {} 174 style->setThicknessRatio(thickness); 175 170 176 osgText::TextNode* text = new osgText::TextNode; 171 177 text->setText(word); 178 text->setFont(font.get()); 179 text->setStyle(style.get()); 172 180 text->setTextTechnique(new osgText::TextTechnique); 173 181 text->update();
