Show
Ignore:
Timestamp:
09/17/08 16:23:25 (6 years ago)
Author:
robert
Message:

Updated osgwidget examples to use the new osg::clone() methods

Files:
1 modified

Legend:

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

    r8602 r8867  
    9090 
    9191    // Test our label copy construction... 
    92     osgWidget::Label* label6 = label5->cloneAs("label6"); 
     92    osgWidget::Label* label6 = osg::clone(label5,"label6"); 
    9393 
    9494    label6->setLabel("abcdefghijklmnopqrs"); 
     
    109109 
    110110    // Test our label-in-window copy construction... 
    111     osgWidget::Box* clonedBox = box->cloneAs("HBOX-new"); 
     111    osgWidget::Box* clonedBox = osg::clone(box,"HBOX-new"); 
    112112     
    113113    clonedBox->getBackground()->setColor(0.0f, 1.0f, 0.0f, 0.5f);