[osg-users] resizing the screen

From: c sklu <csklu_osg_at_yahoo.com>
Date: Fri Jan 28 2005 - 05:18:42 PST

osgHi,

My application allows the user to resize the screen
size (as opposed to the window size) at runtime. When
running osg in fullscreen mode however, it only
recognizes the original screen size of the
application. Looking at the Producer code in the
RenderSurface::getScreenSize() method, it returns two
member variables which are only initialized at
startup.

Would it make sense to have these values looked up
dynamically? Also would be nice to have a x-platform
setScreenSize() method on the RenderSurface? Even
better (IMHO) and what I've done is create a separate
Screen class which handles all Screen related
operations, then the RenderSurface could just
reference this screen object. Unfortunately I've only
implemented it in Windows because of immediate
requirements.

BTW, is this the right forum for Producer/OpenThreads
related questions?

Thanks,
Chris

                
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
Received on Fri Jan 28 05:19:17 2005

This archive was generated by hypermail 2.1.8 : Fri Jan 28 2005 - 05:19:19 PST