Added initial GraphicsWindowX11 implementation, and fleshed out more of the
osgViewer and osg::GraphicsContext/osg::View infrastructure.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user