[osg-users] Creating fixed size X11 window.
Robert Osfield
robert.osfield at gmail.com
Thu Mar 31 00:42:56 PDT 2016
Hi Tony,
As a general note osg-submissions is just for submission, osg-users/forum
is for support.
As for the question about getting the window size exactly what you request,
the OSG can do this if you override the redirect that the window manager
does when adding decoration etc. to your window. However, if you want
window decoration then the window manage will do it's own thing, each one
doing something slightly different, here override redirect won't be usuable.
The enable override redirect in your traits set:
traits->overrideRedirect = true;
Robert.
On 31 March 2016 at 07:58, Tony Vasile <minghia at gmail.com> wrote:
> I have specified the geometry
>
> Code:
>
> osg::GraphicsContext::Traits *traits = new
> osg::GraphicsContext::Traits;
> traits->windowDecoration = false;
> traits->supportsResize = false;
> traits->sharedContext = NULL;
> traits->doubleBuffer = true;
> traits->red = 8;
> traits->blue = 8;
> traits->green = 8;
> traits->alpha = 8;
> traits->depth = 24;
> traits->stencil = 8;
> traits->stencil = 8;
> traits->x = 100;
> traits->y = 0;
> traits->width = 1024;
> traits->height = 1024;
> osg::GraphicsContext * gc =
> osg::GraphicsContext::createGraphicsContext(traits);
>
>
>
> What I am expecting is a window that is positioned at (100, 0) with size
> (1024, 1024). What I am getting a window that is size (1024, 996). Is there
> anyway to force that size to my desired size?
>
> I am running on Centos 6 on 64 bit kernel.
>
> ------------------------
> Tony V
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66681#66681
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160331/86294f0c/attachment-0003.htm>
More information about the osg-users
mailing list