Removed debug code

This commit is contained in:
Robert Osfield
2006-08-03 14:03:06 +00:00
parent 7ef12b37b5
commit de9ce1e85f

View File

@@ -419,21 +419,10 @@ osg::Group* create3DText(const osg::Vec3& center,float radius)
text4->setText("SCREEN");
geode->addDrawable(text4);
///////////////////////////////////////////////
// Added to show osgText state set malfunction
osg::StateSet *textStateSet = new osg::StateSet();
textStateSet->setMode(GL_BLEND, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);
textStateSet->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);
// This works:
//geode->setStateSet(textStateSet);
// This doesn't work:
text4->setStateSet(textStateSet);
osg::ShapeDrawable* shape = new osg::ShapeDrawable(new osg::Sphere(center,characterSize*0.2f));
shape->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::ON);
geode->addDrawable(shape);
osg::Group* rootNode = new osg::Group;
rootNode->addChild(geode);