[osg-users] Window resize

Johan Johnsson eslave at gmail.com
Mon Oct 15 04:35:30 PDT 2007


Platform: Mindows OS


  // Fill the traits structure and get the GraphicsContext for the MAIN  
window
  osg::ref_ptr<osg::GraphicsContext::Traits> traits = new  
osg::GraphicsContext::Traits;
  traits->screenNum = 0;
  traits->doubleBuffer = true;
  traits->sharedContext = 0;
  traits->windowDecoration = true;
  traits->width = vd->process.scrnRes.x;
  traits->height = vd->process.scrnRes.y;
  traits->x = 0;
  traits->y = windowHeight - vd->process.scrnRes.y;
  traits->vsync = true;

  I must have locked it somehow, i dont know where though :/





On Mon, 15 Oct 2007 13:30:21 +0200, David Callu <ledocc at gmail.com> wrote:

> Hi Johan, HI Adrian
>
>     Can you give more info on your platform?
>
>     Can you develop why now the dimension is locked?
>     Which method did you use ?
>
> David
>
> 2007/10/15, Johan Johnsson < eslave at gmail.com>:
>>
>> On Mon, 15 Oct 2007 11:40:53 +0200, Adrian Egli < 3dhelp at gmail.com>  
>> wrote:
>>
>> think you got me wrong , i dont want to change the dimensions that the
>> window initializes to,
>> i want to make the window to be resizeable during the exekvation,  
>> because
>> now the dimension is locked, i cant rezise it.
>>
>>
>>
>> > Look into the source code, who it's done there.
>> >
>> > 2007/10/15, Adrian Egli <3dhelp at gmail.com >:
>> >>
>> >> UNIX/OSX/LINUX
>> >> export OSG_WINDOW=50 50 200 50
>> >>
>> >> Windows
>> >> set OSG_WINDOW=100 100 512 512
>> >>
>> >> 2007/10/15, Johan Johnsson < eslave at gmail.com >:
>> >> >
>> >> > When the process runs in windowed mode, it is not possible to  
>> modify
>> >> the
>> >> > size of the window.
>> >> > It should be possible to resize the window by standard MS Windows
>> >> > conventions.
>> >> >
>> >> > why does this occur and how can i fix this irritating problem?
>> >> > has it something to do with the traits struct?
>> >> >
>> >> > --
>> >> > Mr. Johan Johnsson
>> >> > AutoSim AS, Strandveien 106, 9006 Tromsø
>> >> > Visit us at http://www.autosim.no
>> >> > _______________________________________________
>> >> > osg-users mailing list
>> >> > osg-users at lists.openscenegraph.org
>> >> >
>> >> >
>> >>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> ********************************************
>> >> Adrian Egli
>> >
>> >
>> >
>> >
>>
>>
>>
>> --
>> Mr. Johan Johnsson
>> AutoSim AS, Strandveien 106, 9006 Tromsø
>> Visit us at http://www.autosim.no
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>



-- 
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no



More information about the osg-users mailing list