On Fri, 2011-08-12 at 11:09 +0200, Yue Zijian wrote:
> [code]
> #include <osgWidget/Util>
> #include <osgWidget/WindowManager>
> #include <osgWidget/Canvas>
>
> const unsigned int MASK_2D = 0xF0000000;
>
>
> int main(int argc, char** argv) {
> osgViewer::Viewer viewer;
>
> osgWidget::WindowManager* wm = new osgWidget::WindowManager(
> &viewer,
> 1280.0f,
> 1024.0f,
> MASK_2D,
> osgWidget::WindowManager::WM_PICK_DEBUG
> );
>
> osgWidget::Canvas* canvas = new osgWidget::Canvas("canvas");
>
> osgWidget::Label* label = new osgWidget::Label( "label_test", "test" );
>
> label->setFontColor( 1.0f, 0.0f, 0.0f, 1.0f );
>
> canvas->addWidget( label, 0.0f, 0.0f );
>
> canvas->resize();
>
> wm->addChild(canvas);
>
> return osgWidget::createExample(viewer, wm);
> }
> [/code]
>
> the canvas bg grows taller after the window size changed.
This is probably the bug where the bounding box of the Text isn't
proper; what version of OSG are you using?
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=42017#42017
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org