- Timestamp:
- 09/20/06 15:40:58 (7 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgfadetext/osgfadetext.cpp
r5579 r5580 8 8 #include <osg/MatrixTransform> 9 9 #include <osg/CoordinateSystemNode> 10 #include <osg/ClusterCullingCallback> 10 11 11 12 #include <osgDB/FileUtils> … … 97 98 ellipsoid->convertLatLongHeightToXYZ( osg::DegreesToRadians(latitude), osg::DegreesToRadians(longitude), height, X, Y, Z); 98 99 99 osgText::FadeText* text = new osgText::FadeText; 100 101 osgText::Text* text = new osgText::FadeText; 102 103 osg::Vec3 normal = ellipsoid->computeLocalUpVector( X, Y, Z); 104 text->setCullCallback(new osg::ClusterCullingCallback(osg::Vec3(X,Y,Z), normal, 0.0)); 100 105 101 106 text->setText(str);
