Show
Ignore:
Timestamp:
09/03/10 17:03:42 (4 years ago)
Author:
robert
Message:

Added basic wiring up of TextTechnique? to 3D glyph code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtext3D/osgtext3D.cpp

    r11731 r11734  
    168168    while (arguments.read("-w",word)) {} 
    169169 
     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 
    170176    osgText::TextNode* text = new osgText::TextNode; 
    171177    text->setText(word); 
     178    text->setFont(font.get()); 
     179    text->setStyle(style.get()); 
    172180    text->setTextTechnique(new osgText::TextTechnique); 
    173181    text->update();