Unified the osg::GraphicsThread::Operation and osg::GraphicsContext::Operation classes

as osg::GraphicsOperation.  Unpdated parts of OSG depending upon these.

Added a virtaul bool valid() method to osg::GraphicsContext to allow apps to
test whether a valid graphis context has been created or not.
This commit is contained in:
Robert Osfield
2006-12-24 16:40:19 +00:00
parent 76461b3ab2
commit 39c0c2df76
10 changed files with 139 additions and 112 deletions

View File

@@ -260,7 +260,7 @@ void GraphicsContext::setGraphicsThread(GraphicsThread* gt)
}
}
void GraphicsContext::add(Operation* operation)
void GraphicsContext::add(GraphicsOperation* operation)
{
osg::notify(osg::INFO)<<"Doing add"<<std::endl;
@@ -273,7 +273,7 @@ void GraphicsContext::add(Operation* operation)
_operationsBlock->set(true);
}
void GraphicsContext::remove(Operation* operation)
void GraphicsContext::remove(GraphicsOperation* operation)
{
osg::notify(osg::INFO)<<"Doing remove operation"<<std::endl;