Show
Ignore:
Timestamp:
08/02/06 23:09:25 (8 years ago)
Author:
robert
Message:

Updated wrappers

Files:
1 modified

Legend:

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

    r5381 r5385  
    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 
    422432    osg::ShapeDrawable* shape = new osg::ShapeDrawable(new osg::Sphere(center,characterSize*0.2f)); 
    423433    shape->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::ON);