Changeset 8867

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

Location:
OpenSceneGraph/trunk/examples
Files:
2 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); 
  • OpenSceneGraph/trunk/examples/osgwidgetwindow/osgwidgetwindow.cpp

    r8588 r8867  
    125125        // to the WindowManager. This demonstrates the usages of OSG's ->clone() support, 
    126126        // though that is abstracted by our META_UIObject macro. 
    127         osgWidget::Window* boxCopy = box->cloneAs("newBox"); 
     127        osgWidget::Window* boxCopy = osg::clone(box,"newBox"); 
    128128 
    129129        // Move our copy to make it visible.