Introduce new osgViewer::Renderer class for implementing of the rendering
of cameras in viewers
This commit is contained in:
@@ -579,6 +579,14 @@ void GraphicsContext::removeAllOperations()
|
||||
|
||||
void GraphicsContext::runOperations()
|
||||
{
|
||||
for(osg::GraphicsContext::Cameras::iterator itr = _cameras.begin();
|
||||
itr != _cameras.end();
|
||||
++itr)
|
||||
{
|
||||
osg::Camera* camera = *itr;
|
||||
if (camera->getRenderer()) (*(camera->getRenderer()))(this);
|
||||
}
|
||||
|
||||
for(OperationQueue::iterator itr = _operations.begin();
|
||||
itr != _operations.end();
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user