Changeset 8867
- Timestamp:
- 09/17/08 16:23:25 (5 years ago)
- Location:
- OpenSceneGraph/trunk/examples
- Files:
-
- 2 modified
-
osgwidgetlabel/osgwidgetlabel.cpp (modified) (2 diffs)
-
osgwidgetwindow/osgwidgetwindow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgwidgetlabel/osgwidgetlabel.cpp
r8602 r8867 90 90 91 91 // Test our label copy construction... 92 osgWidget::Label* label6 = label5->cloneAs("label6");92 osgWidget::Label* label6 = osg::clone(label5,"label6"); 93 93 94 94 label6->setLabel("abcdefghijklmnopqrs"); … … 109 109 110 110 // Test our label-in-window copy construction... 111 osgWidget::Box* clonedBox = box->cloneAs("HBOX-new");111 osgWidget::Box* clonedBox = osg::clone(box,"HBOX-new"); 112 112 113 113 clonedBox->getBackground()->setColor(0.0f, 1.0f, 0.0f, 0.5f); -
OpenSceneGraph/trunk/examples/osgwidgetwindow/osgwidgetwindow.cpp
r8588 r8867 125 125 // to the WindowManager. This demonstrates the usages of OSG's ->clone() support, 126 126 // though that is abstracted by our META_UIObject macro. 127 osgWidget::Window* boxCopy = box->cloneAs("newBox");127 osgWidget::Window* boxCopy = osg::clone(box,"newBox"); 128 128 129 129 // Move our copy to make it visible.
