Changeset 7867 for OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
- Timestamp:
- 02/19/08 10:49:12 (5 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
r7741 r7867 547 547 for(unsigned int i=0; i<_maxNumTextPerGeode; ++i) 548 548 { 549 osg::Vec3 position(float(rand()) / float(RAND_MAX) - 0.5f, float(rand()) / float(RAND_MAX) - 0.5f, float(i)/float(_maxNumTextPerGeode) - 0.5f); 549 float x = float(rand()) / float(RAND_MAX) - 0.5f; 550 float y = float(rand()) / float(RAND_MAX) - 0.5f; 551 float z = float(i) / float(_maxNumTextPerGeode) - 0.5f; 552 osg::Vec3 position(x, y, z); 550 553 551 554 std::string str;
