Show
Ignore:
Timestamp:
03/04/03 13:34:42 (11 years ago)
Author:
robert
Message:

Further improvements to osgText and the freetype plugin, handling different
font sizes better and plugin removal safely.

Files:
1 modified

Legend:

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

    r1640 r1643  
    1414#include <osgUtil/Optimizer> 
    1515#include <osgDB/ReadFile> 
     16#include <osgDB/Registry> 
    1617#include <osgProducer/Viewer> 
    1718 
     
    5051    osgText::Text* text4 = new osgText::Text; 
    5152    text4->setFont(osgText::readFontFile("fonts/times.ttf")); 
    52     text4->setFontSize(64,64); 
     53    text4->setFontSize(128,128); 
    5354    text4->setPosition(osg::Vec3(200.0f,200.0f,0.0f)); 
    5455    text4->setLayout(osgText::Text::RIGHT_TO_LEFT); 
     
    127128int main( int argc, char **argv ) 
    128129{ 
    129  
    130130    // use an ArgumentParser object to manage the program arguments. 
    131131    osg::ArgumentParser arguments(&argc,argv); 
     
    212212    // set the scene to render 
    213213    viewer.setSceneData(rootNode.get()); 
    214  
     214     
    215215    // create the windows and run the threads. 
    216216    viewer.realize(Producer::CameraGroup::ThreadPerCamera); 
     
    229229         
    230230    } 
    231      
     231 
    232232    return 0; 
    233233}