Hi Matthias, On 8/29/07, Matthias Weigand <[EMAIL PROTECTED]> wrote: > I'm new to osg and this list. I started setting up a win32 application > with Visual Studio 8 today. I don't want to use the Viewer class, since > i want to create windows on specific screens. > As i created a GraphicsContext::ScreenIdentifier with any of the > constructors, the initial values were corrupt (e.g. hostName was "ÍÍÍÍ..."). > I couldn't believe, that std::string doesn't initialize to "" and copied > the ScreenIdentifier class and renamed it. These values were initialized > corretly.
You can open up windows on specific screens very easily using osgViewer, your can either use the osgViewer::View::setUpViewOnScreen(uint num) method or by creating the window yourself via osg::GraphicsContext::Traits. See the osgcamera example for inspiration. > I've read about problems with STLport, does it apply to microsoft's > implementation, too? STLport is only needed for VS6.0. > Here's the code in my main-function: > > creenIdentifier* b = new creenIdentifier(); //local class > GraphicsContext::ScreenIdentifier* c = new > GraphicsContext::ScreenIdentifier(); //osg class > > No more code gets executed. Can't make any sense from this. Have a look at the code in src/osgViewer/View.cpp where it sets up the windows, and the examples/osgcamera/osgcamera.cpp and example/osgwindows/osgwindow.cpp codes, they all set up GraphicsWidows. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

