Renamed osg::GraphicsContext::OperationQueue typedef to GraphicsOperationQueue to avoid naming conflict with osg::OperationQueue
This commit is contained in:
@@ -679,7 +679,7 @@ void GraphicsContext::remove(Operation* operation)
|
||||
// acquire the lock on the operations queue to prevent anyone else for modifying it at the same time
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex);
|
||||
|
||||
for(OperationQueue::iterator itr = _operations.begin();
|
||||
for(GraphicsOperationQueue::iterator itr = _operations.begin();
|
||||
itr!=_operations.end();)
|
||||
{
|
||||
if ((*itr)==operation) itr = _operations.erase(itr);
|
||||
@@ -700,7 +700,7 @@ void GraphicsContext::remove(const std::string& name)
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex);
|
||||
|
||||
// find the remove all operations with specified name
|
||||
for(OperationQueue::iterator itr = _operations.begin();
|
||||
for(GraphicsOperationQueue::iterator itr = _operations.begin();
|
||||
itr!=_operations.end();)
|
||||
{
|
||||
if ((*itr)->getName()==name) itr = _operations.erase(itr);
|
||||
@@ -750,7 +750,7 @@ void GraphicsContext::runOperations()
|
||||
if (camera->getRenderer()) (*(camera->getRenderer()))(this);
|
||||
}
|
||||
|
||||
for(OperationQueue::iterator itr = _operations.begin();
|
||||
for(GraphicsOperationQueue::iterator itr = _operations.begin();
|
||||
itr != _operations.end();
|
||||
)
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@ TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext::ScreenSettings >, osg::Graphi
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osg::GraphicsContext::GraphicsContexts)
|
||||
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Operation > >, osg::GraphicsContext::OperationQueue)
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Operation > >, osg::GraphicsContext::GraphicsOperationQueue)
|
||||
|
||||
TYPE_NAME_ALIAS(std::list< osg::Camera * >, osg::GraphicsContext::Cameras)
|
||||
|
||||
@@ -113,9 +113,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext)
|
||||
__void__runOperations,
|
||||
"Run the operations. ",
|
||||
"");
|
||||
I_Method0(osg::GraphicsContext::OperationQueue &, getOperationsQueue,
|
||||
I_Method0(osg::GraphicsContext::GraphicsOperationQueue &, getOperationsQueue,
|
||||
Properties::NON_VIRTUAL,
|
||||
__OperationQueue_R1__getOperationsQueue,
|
||||
__GraphicsOperationQueue_R1__getOperationsQueue,
|
||||
"Get the operations queue, not you must use the OperationsMutex when accessing the queue. ",
|
||||
"");
|
||||
I_Method0(OpenThreads::Mutex *, getOperationsMutex,
|
||||
@@ -395,8 +395,8 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext)
|
||||
I_SimpleProperty(OpenThreads::Mutex *, OperationsMutex,
|
||||
__OpenThreads_Mutex_P1__getOperationsMutex,
|
||||
0);
|
||||
I_SimpleProperty(osg::GraphicsContext::OperationQueue &, OperationsQueue,
|
||||
__OperationQueue_R1__getOperationsQueue,
|
||||
I_SimpleProperty(osg::GraphicsContext::GraphicsOperationQueue &, OperationsQueue,
|
||||
__GraphicsOperationQueue_R1__getOperationsQueue,
|
||||
0);
|
||||
I_SimpleProperty(osg::GraphicsContext::ResizedCallback *, ResizedCallback,
|
||||
__ResizedCallback_P1__getResizedCallback,
|
||||
|
||||
Reference in New Issue
Block a user