能够根据屏幕数,创建不同位置的窗口。
void Viewer::realize()
{
//在某一个屏幕上创建无边框窗口
//在某一个屏幕上创建正常窗口
//在所有屏幕上创建正常窗口,一个窗口,窗口位置可以跨屏幕
osgViewer::SingleWindow实现
//在某一个屏幕上创建全屏窗口
osgViewer::SingleScreen实现
//在所有屏幕上创建全屏窗口,,一个窗口,窗口位置可以跨屏幕
osgViewer::AcrossAllScreens实现
}
另外在osgViewer::Viewer构造函数中还会设置一些显示方式,具体区别日后再深入分析
Viewer::Viewer(osg::ArgumentParser& arguments)
{
//飞利浦立体影像技术显示WoWVx
由osgViewer::WoWVxDisplay实现;
//3d球面显示,setUpViewFor3DSphericalDisplay
由osgViewer::SphericalDisplay实现;
//全景球面显示,setUpViewForPanoramicSphericalDisplay
由osgViewer::PanoramicSphericalDisplay实现;
}