Added to Viewer::realize() automatic setup using Keystone when available and enabled, and when no other window setup has been selected.

This commit is contained in:
Robert Osfield
2013-05-13 09:18:37 +00:00
parent 9402efe38e
commit 4e34cadee2
4 changed files with 25 additions and 8 deletions

View File

@@ -263,7 +263,7 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
osg::Camera* assignRenderToTextureCamera(osg::GraphicsContext* gc, int width, int height, osg::Texture* texture);
osg::Camera* assignKeystoneDistortionCamera(osg::DisplaySettings* ds, osg::GraphicsContext* gc, int x, int y, int width, int height, GLenum buffer, osg::Texture* texture, Keystone* keystone);
osg::Camera* assignStereoCamera(osg::DisplaySettings* ds, osg::GraphicsContext* gc, int x, int y, int width, int height, GLenum buffer, double eyeScale);
void setUpViewForStereo(osg::DisplaySettings* ds);
void setUpViewForStereo();
void setUpViewForKeystone(Keystone* keystone);
struct StereoSlaveCallback : public osg::View::Slave::UpdateSlaveCallback