Show
Ignore:
Timestamp:
08/03/06 16:03:06 (8 years ago)
Author:
robert
Message:

Removed debug code

Files:
1 modified

Legend:

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

    r5385 r5388  
    420420    geode->addDrawable(text4); 
    421421 
    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  
    432422    osg::ShapeDrawable* shape = new osg::ShapeDrawable(new osg::Sphere(center,characterSize*0.2f)); 
    433423    shape->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::ON); 
    434424    geode->addDrawable(shape); 
    435  
    436425 
    437426    osg::Group* rootNode = new osg::Group;