Thanks Tom, submission looks good, now merged and submitted to svn/trunk.
On Wed, Apr 13, 2011 at 9:45 PM, Thomas Hogarth <[email protected]> wrote: > Hi All > Attached are the complete changed files GraphicsWindowIOS and > GraphicsWindowIOS.mm. The change is in regard to the ability to adapt to > device orientation. We did just have a bool indicating the window would > adapt to all orientations. I have changed this to a bit mask allowing the > user to specify individual orientations or combinations. > enum DeviceOrientation{ > > PORTRAIT_ORIENTATION = 1<<0, > > PORTRAIT_UPSIDEDOWN_ORIENTATION = 1<<1, > > LANDSCAPE_LEFT_ORIENTATION = 1<<2, > > LANDSCAPE_RIGHT_ORIENTATION = 1<<3, > > ALL_ORIENTATIONS = PORTRAIT_ORIENTATION | > PORTRAIT_UPSIDEDOWN_ORIENTATION | LANDSCAPE_LEFT_ORIENTATION | > LANDSCAPE_RIGHT_ORIENTATION > > }; > > typedef unsigned int DeviceOrientationFlags; > The main motivation for this is to easily allow the user to specifiy that > the device is in a horizontal orientation rather then having to rotate the > view matrix. All flags have been tested individually as well as in > combinations. The default is ALL_ORIENTATIONS to keep the exiting > functionality for anyone who hasn't specified WindowData for their context > traits. > Cheers > Tom > PS > This is my first direct submission so please let me know if i've done > anything wrong > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
