Added initial GraphicsWindowX11 implementation, and fleshed out more of the

osgViewer and osg::GraphicsContext/osg::View infrastructure.
This commit is contained in:
Robert Osfield
2006-12-19 16:00:51 +00:00
parent afc77f9b39
commit dcebe4daa0
11 changed files with 695 additions and 16 deletions

View File

@@ -20,13 +20,33 @@ using namespace osgViewer;
Viewer::Viewer()
{
osg::notify(osg::NOTICE)<<"Viewer::Viewer() not implemented yet."<<std::endl;
}
Viewer::~Viewer()
{
}
void Viewer::realize()
{
osg::notify(osg::NOTICE)<<"Viewer::realize()"<<std::endl;
if (_camera.valid() && _camera->getGraphicsContext())
{
_camera->getGraphicsContext()->realize();
}
for(unsigned int i=0; i<getNumSlaves(); ++i)
{
Slave& slave = getSlave(i);
if (slave._camera.valid() && slave._camera->getGraphicsContext())
{
osg::notify(osg::NOTICE)<<" slave realize()"<<std::endl;
slave._camera->getGraphicsContext()->realize();
}
}
}
void Viewer::frame()
{
osg::notify(osg::NOTICE)<<"Viewer::frame() not implemented yet."<<std::endl;