Changeset 5385 for OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
- Timestamp:
- 08/02/06 23:09:25 (7 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
r5381 r5385 420 420 geode->addDrawable(text4); 421 421 422 /////////////////////////////////////////////// 423 // Added to show osgText state set malfunction 424 osg::StateSet *textStateSet = new osg::StateSet(); 425 textStateSet->setMode(GL_BLEND, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED); 426 textStateSet->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED); 427 // This works: 428 //geode->setStateSet(textStateSet); 429 // This doesn't work: 430 text4->setStateSet(textStateSet); 431 422 432 osg::ShapeDrawable* shape = new osg::ShapeDrawable(new osg::Sphere(center,characterSize*0.2f)); 423 433 shape->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::ON);
