openscenegraph
osg::GraphicsOperation Struct Referenceabstract

#include <GraphicsThread>

Inheritance diagram for osg::GraphicsOperation:
osg::Operation osg::Referenced osg::BlockAndFlushOperation osg::FlushDeletedGLObjectsOperation osg::ReleaseContext_Block_MakeCurrentOperation osg::RunOperations osg::SwapBuffersOperation osgUtil::GLObjectsOperation osgUtil::IncrementalCompileOperation osgViewer::Renderer

Public Member Functions

 GraphicsOperation (const std::string &name, bool keep)
virtual void operator() (Object *object)
virtual void operator() (GraphicsContext *context)=0
virtual void resizeGLObjectBuffers (unsigned int)
virtual void releaseGLObjects (osg::State *=0) const
Public Member Functions inherited from osg::Operation
 Operation (const std::string &name, bool keep)
void setName (const std::string &name)
const std::string & getName () const
void setKeep (bool keep)
bool getKeep () const
virtual void release ()
Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Additional Inherited Members

Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()
Protected Member Functions inherited from osg::Operation
 Operation ()
virtual ~Operation ()
Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const
Protected Attributes inherited from osg::Operation
std::string _name
bool _keep
Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Constructor & Destructor Documentation

◆ GraphicsOperation()

Member Function Documentation

◆ operator()() [1/2]

◆ operator()() [2/2]

virtual void osg::GraphicsOperation::operator() ( Object * object)
virtual

Override the standard Operation operator and dynamic cast object to a GraphicsContext, on success call operation()(GraphicsContext*).

Implements osg::Operation.

Reimplemented in osgViewer::Renderer.

◆ releaseGLObjects()

virtual void osg::GraphicsOperation::releaseGLObjects ( osg::State * = 0) const
inlinevirtual

If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objects for all graphics contexts.

Reimplemented in osgViewer::Renderer.

◆ resizeGLObjectBuffers()

virtual void osg::GraphicsOperation::resizeGLObjectBuffers ( unsigned int )
inlinevirtual

Resize any per context GLObject buffers to specified size.

Reimplemented in osgViewer::Renderer.


The documentation for this struct was generated from the following file: