[osg-users] Creating fixed size X11 window.

Tony Vasile minghia at gmail.com
Wed Mar 30 23:58:27 PDT 2016


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








More information about the osg-users mailing list