FlightGear next
flightgear::GraphicsContextOperation Class Referenceabstract

An operation that is run once with a particular GraphicsContext current. More...

#include <WindowSystemAdapter.hxx>

Inherits osg::GraphicsOperation.

Inherited by QueryGLParametersOperation.

Public Member Functions

 GraphicsContextOperation (const std::string &name)
 
virtual void operator() (osg::GraphicsContext *gc)
 Don't override this!
 
virtual void run (osg::GraphicsContext *gc)=0
 The body of the operation.
 
bool isFinished () const
 Test if the operation has completed.
 

Detailed Description

An operation that is run once with a particular GraphicsContext current.

It will probably be deferred and may run in a different thread.

Definition at line 72 of file WindowSystemAdapter.hxx.

Constructor & Destructor Documentation

◆ GraphicsContextOperation()

flightgear::GraphicsContextOperation::GraphicsContextOperation ( const std::string & name)
inline

Definition at line 75 of file WindowSystemAdapter.hxx.

Member Function Documentation

◆ isFinished()

bool flightgear::GraphicsContextOperation::isFinished ( ) const
inline

Test if the operation has completed.

Returns
true if the run() method has finished.

Definition at line 88 of file WindowSystemAdapter.hxx.

◆ operator()()

void flightgear::GraphicsContextOperation::operator() ( osg::GraphicsContext * gc)
virtual

Don't override this!

Definition at line 37 of file WindowSystemAdapter.cxx.

◆ run()

virtual void flightgear::GraphicsContextOperation::run ( osg::GraphicsContext * gc)
pure virtual

The body of the operation.

Implemented in QueryGLParametersOperation.


The documentation for this class was generated from the following files: