On Tue, 2012-08-28 at 16:59 +0200, Miguel Lokida wrote:
> So i see what you mean. But how can I declare the position of my widget
> relative to the parented window ?
>
> Here's the code I use:
>
> [code]
> const unsigned int MASK_2D = 0xF000;
>
> // note: osgViewer::Viewer* ptrViewer;
> //
So i see what you mean. But how can I declare the position of my widget
relative to the parented window ?
Here's the code I use:
[code]
const unsigned int MASK_2D = 0xF000;
// note: osgViewer::Viewer* ptrViewer;
// note: osg::ref_ptr _rootScene;
// note: ptrViewer->setSceneData(_rootScene);
On Tue, 2012-08-28 at 11:05 +0200, Miguel Lokida wrote:
> Hi,
>
> I want to use an osgWidget to draw a compass. So, I need to use the rotation.
> The problem is that the origin of the osgWidget is at the bottom left and not
> at the center of the widget.
>
> How can I specify the center of my
Hi,
I want to use an osgWidget to draw a compass. So, I need to use the rotation.
The problem is that the origin of the osgWidget is at the bottom left and not
at the center of the widget.
How can I specify the center of my widget (since set Origin only move the
widget) in order to have a goo
4 matches
Mail list logo