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:
@@ -107,10 +107,10 @@ void Viewer::getContexts(Contexts& contexts)
|
||||
OpenThreads::Mutex mutex;
|
||||
|
||||
// Compile operation, that compile OpenGL objects.
|
||||
struct CompileOperation : public osg::GraphicsThread::Operation
|
||||
struct CompileOperation : public osg::GraphicsOperation
|
||||
{
|
||||
CompileOperation(osg::Node* scene):
|
||||
osg::GraphicsThread::Operation("Compile",false),
|
||||
osg::GraphicsOperation("Compile",false),
|
||||
_scene(scene)
|
||||
{
|
||||
}
|
||||
@@ -136,10 +136,10 @@ struct CompileOperation : public osg::GraphicsThread::Operation
|
||||
|
||||
|
||||
// Draw operation, that does a draw on the scene graph.
|
||||
struct RunOperations : public osg::GraphicsThread::Operation
|
||||
struct RunOperations : public osg::GraphicsOperation
|
||||
{
|
||||
RunOperations(osg::GraphicsContext* gc):
|
||||
osg::GraphicsThread::Operation("RunOperation",true),
|
||||
osg::GraphicsOperation("RunOperation",true),
|
||||
_originalContext(gc)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user