On 5/22/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Fro this we'll need a flag in osg::Camera to tell the window not to
resize the Camera.
To this end I have just added the following methods and enum to
osg::Camera, I've also added support into GraphisContext to use these
values to control the adjustment of the projection matrices that it
makes. A svn update will get these changes.
enum ProjectionResizePolicy
{
FIXED, /** Keep the projection matrix fixed, despite
window resizes.*/
HORIZONTAL, /** Adjust the HORIZOTNAL field of view on
window resizes.*/
VERTICAL /** Adjust the VERTICAL field of view on window resizes.*/
};
/** Set the policy used to determin if and how the projection
matrix should be adjusted on window resizes. */
inline void setProjectionResizePolicy(ProjectionResizePolicy
policy) { _projectionResizePolicy = policy; }
/** Get the policy used to determin if and how the projection
matrix should be adjusted on window resizes. */
inline ProjectionResizePolicy getProjectionResizePolicy()
const { return _projectionResizePolicy; }
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/