Hi Jean Sebastien,

This sounds like a great idea, but the problem remain the same : the HUD
will be resized automatically... just because it is a HUD... the callback is
the same thing like a RESIZE event on a handler I have, it gave me the
event, but do not forbid the HUD to resize with the window, am I right ?

Thanks.

Regards,
    Vincent.

2009/7/17 Jean-Sébastien Guay <[email protected]>

> Hello Vincent,
>
>  I'm looking at a way to keep the hud ratio constant even if the window
>> ratio change.
>>
>
> Not a complete answer, but the solution will probably be to implement a
> WindowResizeCallback that you set on the GraphicsWindow. This callback will
> be notified right after the window size changes, and you will then be able
> to resize your HUD however you want to as a result. I have done this in
> several apps.
>
> Hope this helps,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> 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

Reply via email to