- Timestamp:
- 11/28/08 15:36:39 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgwidgetlabel/osgwidgetlabel.cpp
r8867 r9289 48 48 1024.0f, 49 49 MASK_2D, 50 osgWidget::WindowManager::WM_PICK_DEBUG|51 osgWidget::WindowManager::WM_ NO_INVERT_Y50 // osgWidget::WindowManager::WM_USE_RENDERBINS | 51 osgWidget::WindowManager::WM_PICK_DEBUG 52 52 ); 53 53 … … 65 65 66 66 label1->setColor(1.0f, 0.5f, 0.0f, 0.0f); 67 label2->setColor(1.0f, 0.5f, 0.0f, 0.0f); 67 label2->setColor(1.0f, 0.5f, 0.0f, 0.5f); 68 69 label2->setImage("Images/Brick-Norman-Brown.TGA", true); 68 70 69 71 box->addWidget(label1); … … 86 88 label5->setColor(0.0f, 0.0f, 0.5f, 0.5f); 87 89 88 label5->setAlignHorizontal(osgWidget::Widget::HA_LEFT);89 label5->setAlignVertical(osgWidget::Widget::VA_BOTTOM);90 //label5->setAlignHorizontal(osgWidget::Widget::HA_LEFT); 91 //label5->setAlignVertical(osgWidget::Widget::VA_BOTTOM); 90 92 91 93 // Test our label copy construction... 92 osgWidget::Label* label6 = osg::clone(label5, "label6");94 osgWidget::Label* label6 = osg::clone(label5, "label6", osg::CopyOp::DEEP_COPY_ALL); 93 95 94 96 label6->setLabel("abcdefghijklmnopqrs"); … … 109 111 110 112 // Test our label-in-window copy construction... 111 osgWidget::Box* clonedBox = osg::clone(box, "HBOX-new");113 osgWidget::Box* clonedBox = osg::clone(box, "HBOX-new", osg::CopyOp::DEEP_COPY_ALL); 112 114 113 115 clonedBox->getBackground()->setColor(0.0f, 1.0f, 0.0f, 0.5f);
