How do you use GraphicsWindowWin32? I haven't found any tutorials or samples 
using it and I can't figure it out by looking at the documentation.

This is what I've got:


Code:
void Renderer::createWindow(int width, int height, int bpp, bool resizable, 
bool fullscreen, bool cursor, const std::string& title)
{
osg::ref_ptr<osg::GraphicsContext::Traits> traits = new 
osg::GraphicsContext::Traits();

traits->width = width;
traits->height = height;
traits->depth = bpp;
traits->supportsResize = resizable;
traits->useCursor = cursor;
traits->windowName = title;

m_window = new osgViewer::GraphicsWindowWin32(traits);

//...
}



I thought maybe I would have to run m_window->realize(); but nothing appears to 
happen when I use it.

No window appears. What am I missing?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15185#15185





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to