Changeset 1643 for OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
- Timestamp:
- 03/04/03 13:34:42 (10 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
r1640 r1643 14 14 #include <osgUtil/Optimizer> 15 15 #include <osgDB/ReadFile> 16 #include <osgDB/Registry> 16 17 #include <osgProducer/Viewer> 17 18 … … 50 51 osgText::Text* text4 = new osgText::Text; 51 52 text4->setFont(osgText::readFontFile("fonts/times.ttf")); 52 text4->setFontSize( 64,64);53 text4->setFontSize(128,128); 53 54 text4->setPosition(osg::Vec3(200.0f,200.0f,0.0f)); 54 55 text4->setLayout(osgText::Text::RIGHT_TO_LEFT); … … 127 128 int main( int argc, char **argv ) 128 129 { 129 130 130 // use an ArgumentParser object to manage the program arguments. 131 131 osg::ArgumentParser arguments(&argc,argv); … … 212 212 // set the scene to render 213 213 viewer.setSceneData(rootNode.get()); 214 214 215 215 // create the windows and run the threads. 216 216 viewer.realize(Producer::CameraGroup::ThreadPerCamera); … … 229 229 230 230 } 231 231 232 232 return 0; 233 233 }
