1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version.  The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * OpenSceneGraph Public License for more details.
12 */
13 
14 #include <osgViewer/config/SingleScreen>
15 #include <osgViewer/Renderer>
16 #include <osgViewer/View>
17 #include <osgViewer/GraphicsWindow>
18 
19 #include <osgViewer/config/SingleWindow>
20 
21 #include <osg/io_utils>
22 
23 using namespace osgViewer;
24 
configure(osgViewer::View & view) const25 void SingleScreen::configure(osgViewer::View& view) const
26 {
27     osg::ref_ptr<osgViewer::SingleWindow> singleWindow = new SingleWindow(0,0,-1,-1,_screenNum);
28     singleWindow->setWindowDecoration(false);
29     singleWindow->configure(view);
30 }
31