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

This commit is contained in:
Robert Osfield
2008-09-17 14:23:25 +00:00
parent fbeabc23e0
commit 0598ac3b69
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ int main(int argc, char** argv) {
label5->setAlignVertical(osgWidget::Widget::VA_BOTTOM);
// Test our label copy construction...
osgWidget::Label* label6 = label5->cloneAs("label6");
osgWidget::Label* label6 = osg::clone(label5,"label6");
label6->setLabel("abcdefghijklmnopqrs");
@@ -108,7 +108,7 @@ int main(int argc, char** argv) {
// vbox->setAnchorHorizontal(osgWidget::Window::HA_RIGHT);
// Test our label-in-window copy construction...
osgWidget::Box* clonedBox = box->cloneAs("HBOX-new");
osgWidget::Box* clonedBox = osg::clone(box,"HBOX-new");
clonedBox->getBackground()->setColor(0.0f, 1.0f, 0.0f, 0.5f);