OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
osg::GraphicsContext Class Referenceabstract

#include <GraphicsContext.h>

Inheritance diagram for osg::GraphicsContext:
Inheritance graph
[legend]
Collaboration diagram for osg::GraphicsContext:
Collaboration graph
[legend]

Classes

struct  ResizedCallback
 
struct  ScreenIdentifier
 
struct  ScreenSettings
 
struct  SwapCallback
 
struct  Traits
 
struct  WindowingSystemInterface
 

Public Types

typedef std::vector
< ScreenSettings
ScreenSettingsList
 
typedef std::vector
< GraphicsContext * > 
GraphicsContexts
 
typedef std::list< ref_ptr
< Operation > > 
GraphicsOperationQueue
 
typedef std::list< osg::Camera * > Cameras
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 

Public Member Functions

void add (Operation *operation)
 
void remove (Operation *operation)
 
void remove (const std::string &name)
 
void removeAllOperations ()
 
virtual void runOperations ()
 
GraphicsOperationQueuegetOperationsQueue ()
 
OpenThreads::MutexgetOperationsMutex ()
 
osg::RefBlockgetOperationsBlock ()
 
OperationgetCurrentOperation ()
 
const TraitsgetTraits () const
 
virtual bool valid () const =0
 
void setState (State *state)
 
StategetState ()
 
const StategetState () const
 
void setClearColor (const Vec4 &color)
 
const Vec4getClearColor () const
 
void setClearMask (GLbitfield mask)
 
GLbitfield getClearMask () const
 
virtual void clear ()
 
double getTimeSinceLastClear () const
 
bool realize ()
 
void close (bool callCloseImplementation=true)
 
void swapBuffers ()
 
bool isRealized () const
 
bool makeCurrent ()
 
bool makeContextCurrent (GraphicsContext *readContext)
 
bool releaseContext ()
 
bool isCurrent () const
 
void bindPBufferToTexture (GLenum buffer)
 
void createGraphicsThread ()
 
void setGraphicsThread (GraphicsThread *gt)
 
GraphicsThreadgetGraphicsThread ()
 
const GraphicsThreadgetGraphicsThread () const
 
virtual bool realizeImplementation ()=0
 
virtual bool isRealizedImplementation () const =0
 
virtual void closeImplementation ()=0
 
virtual bool makeCurrentImplementation ()=0
 
virtual bool makeContextCurrentImplementation (GraphicsContext *readContext)=0
 
virtual bool releaseContextImplementation ()=0
 
virtual void bindPBufferToTextureImplementation (GLenum buffer)=0
 
void setSwapCallback (SwapCallback *rc)
 
SwapCallbackgetSwapCallback ()
 
const SwapCallbackgetSwapCallback () const
 
void swapBuffersCallbackOrImplemenation ()
 
virtual void swapBuffersImplementation ()=0
 
void resized (int x, int y, int width, int height)
 
void setResizedCallback (ResizedCallback *rc)
 
ResizedCallbackgetResizedCallback ()
 
const ResizedCallbackgetResizedCallback () const
 
virtual void resizedImplementation (int x, int y, int width, int height)
 
CamerasgetCameras ()
 
const CamerasgetCameras () const
 
void setDefaultFboId (GLuint i)
 
GLuint getDefaultFboId () const
 
virtual bool isSameKindAs (const Object *object) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
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
 

Static Public Member Functions

static void setWindowingSystemInterface (WindowingSystemInterface *wsInterface)
 
static WindowingSystemInterfacegetWindowingSystemInterface ()
 
static GraphicsContextcreateGraphicsContext (Traits *traits)
 
static unsigned int createNewContextID ()
 
static unsigned int getMaxContextID ()
 
static void incrementContextIDUsageCount (unsigned int contextID)
 
static void decrementContextIDUsageCount (unsigned int contextID)
 
static GraphicsContexts getAllRegisteredGraphicsContexts ()
 
static GraphicsContexts getRegisteredGraphicsContexts (unsigned int contextID)
 
static void setCompileContext (unsigned int contextID, GraphicsContext *gc)
 
static GraphicsContextgetOrCreateCompileContext (unsigned int contextID)
 
static GraphicsContextgetCompileContext (unsigned int contextID)
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Protected Member Functions

 GraphicsContext ()
 
 GraphicsContext (const GraphicsContext &, const osg::CopyOp &)
 
virtual ~GraphicsContext ()
 
virtual ObjectcloneType () const
 
virtual Objectclone (const CopyOp &) const
 
void addCamera (osg::Camera *camera)
 
void removeCamera (osg::Camera *camera)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Static Protected Member Functions

static void registerGraphicsContext (GraphicsContext *gc)
 
static void unregisterGraphicsContext (GraphicsContext *gc)
 

Protected Attributes

Cameras _cameras
 
ref_ptr< Traits_traits
 
ref_ptr< State_state
 
Vec4 _clearColor
 
GLbitfield _clearMask
 
OpenThreads::Thread_threadOfLastMakeCurrent
 
OpenThreads::Mutex _operationsMutex
 
osg::ref_ptr< osg::RefBlock_operationsBlock
 
GraphicsOperationQueue _operations
 
osg::ref_ptr< Operation_currentOperation
 
ref_ptr< GraphicsThread_graphicsThread
 
ref_ptr< ResizedCallback_resizedCallback
 
ref_ptr< SwapCallback_swapCallback
 
Timer_t _lastClearTick
 
GLuint _defaultFboId
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Friends

class osg::Camera
 

Detailed Description

Base class for providing Windowing API agnostic access to creating and managing graphics context.

Definition at line 29 of file GraphicsContext.h.

Member Typedef Documentation

Definition at line 468 of file GraphicsContext.h.

Definition at line 239 of file GraphicsContext.h.

Definition at line 273 of file GraphicsContext.h.

Definition at line 166 of file GraphicsContext.h.

Constructor & Destructor Documentation

osg::GraphicsContext::GraphicsContext ( )
protected
osg::GraphicsContext::GraphicsContext ( const GraphicsContext ,
const osg::CopyOp  
)
protected
virtual osg::GraphicsContext::~GraphicsContext ( )
protectedvirtual

Member Function Documentation

void osg::GraphicsContext::add ( Operation operation)

Add operation to end of OperationQueue.

void osg::GraphicsContext::addCamera ( osg::Camera camera)
protected
void osg::GraphicsContext::bindPBufferToTexture ( GLenum  buffer)
inline

Bind the graphics context to associated texture.

Definition at line 363 of file GraphicsContext.h.

virtual void osg::GraphicsContext::bindPBufferToTextureImplementation ( GLenum  buffer)
pure virtual

Pure virtual, Bind the graphics context to associated texture implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::GraphicsWindow, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

virtual const char* osg::GraphicsContext::className ( ) const
inlinevirtual

return the name of the object's class type. Must be defined by derived classes.

Implements osg::Object.

Reimplemented in osgViewer::GraphicsWindowEmbedded, osgViewer::GraphicsWindowX11, osgViewer::GraphicsWindow, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

Definition at line 485 of file GraphicsContext.h.

virtual void osg::GraphicsContext::clear ( )
virtual

Do an OpenGL clear of the full graphics context/window. Note, must only be called from a thread with this context current.

virtual Object* osg::GraphicsContext::clone ( const CopyOp ) const
inlineprotectedvirtual

Clone an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

Definition at line 495 of file GraphicsContext.h.

virtual Object* osg::GraphicsContext::cloneType ( ) const
inlineprotectedvirtual

Clone the type of an object, with Object* return type. Must be defined by derived classes.

Implements osg::Object.

Definition at line 494 of file GraphicsContext.h.

void osg::GraphicsContext::close ( bool  callCloseImplementation = true)

close the graphics context. close(bool) stops any associated graphics threads, releases the contextID for the GraphicsContext then optional calls closeImplementation() to do the actual deletion of the graphics. This call is made optional as there are times when the graphics context has already been deleted externally and only the OSG side of the its data need to be closed down.

virtual void osg::GraphicsContext::closeImplementation ( )
pure virtual

Close the graphics context implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::GraphicsWindowEmbedded, osgQt::GraphicsWindowQt, osgViewer::GraphicsWindow, osgViewer::GraphicsWindowX11, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

static GraphicsContext* osg::GraphicsContext::createGraphicsContext ( Traits traits)
static

Create a graphics context for a specified set of traits.

void osg::GraphicsContext::createGraphicsThread ( )

Create a graphics thread to the graphics context, so that the thread handles all OpenGL operations.

static unsigned int osg::GraphicsContext::createNewContextID ( )
static

Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. Automatically increments the usage count of the contextID to 1.

Here is the caller graph for this function:

static void osg::GraphicsContext::decrementContextIDUsageCount ( unsigned int  contextID)
static

Decrement the usage count associate with a contextID. Once the contextID goes to 0 the contextID is then free to be reused.

static GraphicsContexts osg::GraphicsContext::getAllRegisteredGraphicsContexts ( )
static

Get all the registered graphics contexts.

Cameras& osg::GraphicsContext::getCameras ( )
inline

Get the list of cameras associated with this graphics context.

Definition at line 471 of file GraphicsContext.h.

const Cameras& osg::GraphicsContext::getCameras ( ) const
inline

Get the const list of cameras associated with this graphics context.

Definition at line 474 of file GraphicsContext.h.

const Vec4& osg::GraphicsContext::getClearColor ( ) const
inline

Returns the clear color.

Definition at line 311 of file GraphicsContext.h.

GLbitfield osg::GraphicsContext::getClearMask ( ) const
inline

Get the clear mask.

Definition at line 319 of file GraphicsContext.h.

static GraphicsContext* osg::GraphicsContext::getCompileContext ( unsigned int  contextID)
static

Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID.

Operation* osg::GraphicsContext::getCurrentOperation ( )
inline

Get the current operations that is being run.

Definition at line 285 of file GraphicsContext.h.

GLuint osg::GraphicsContext::getDefaultFboId ( ) const
inline

Definition at line 479 of file GraphicsContext.h.

GraphicsThread* osg::GraphicsContext::getGraphicsThread ( )
inline

Get the graphics thread assigned the graphics context.

Definition at line 374 of file GraphicsContext.h.

const GraphicsThread* osg::GraphicsContext::getGraphicsThread ( ) const
inline

Get the const graphics thread assigned the graphics context.

Definition at line 377 of file GraphicsContext.h.

static unsigned int osg::GraphicsContext::getMaxContextID ( )
static

Get the current max ContextID.

osg::RefBlock* osg::GraphicsContext::getOperationsBlock ( )
inline

Get the operations queue block used to mark an empty queue, if you end items into the empty queue you must release this block.

Definition at line 282 of file GraphicsContext.h.

OpenThreads::Mutex* osg::GraphicsContext::getOperationsMutex ( )
inline

Get the operations queue mutex.

Definition at line 279 of file GraphicsContext.h.

GraphicsOperationQueue& osg::GraphicsContext::getOperationsQueue ( )
inline

Get the operations queue, note you must use the OperationsMutex when accessing the queue.

Definition at line 276 of file GraphicsContext.h.

static GraphicsContext* osg::GraphicsContext::getOrCreateCompileContext ( unsigned int  contextID)
static

Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID.

static GraphicsContexts osg::GraphicsContext::getRegisteredGraphicsContexts ( unsigned int  contextID)
static

Get all the registered graphics contexts associated with a specific contextID.

ResizedCallback* osg::GraphicsContext::getResizedCallback ( )
inline

Get the resized callback which overrides the GraphicsConext::realizedImplementation().

Definition at line 459 of file GraphicsContext.h.

const ResizedCallback* osg::GraphicsContext::getResizedCallback ( ) const
inline

Get the const resized callback which overrides the GraphicsConext::realizedImplementation().

Definition at line 462 of file GraphicsContext.h.

State* osg::GraphicsContext::getState ( )
inline

Get the State object which tracks the current OpenGL state for this graphics context.

Definition at line 301 of file GraphicsContext.h.

Here is the call graph for this function:

Here is the caller graph for this function:

const State* osg::GraphicsContext::getState ( ) const
inline

Get the const State object which tracks the current OpenGL state for this graphics context.

Definition at line 304 of file GraphicsContext.h.

Here is the call graph for this function:

SwapCallback* osg::GraphicsContext::getSwapCallback ( )
inline

Get the swap callback which overrides the GraphicsContext::swapBuffersImplementation().

Definition at line 419 of file GraphicsContext.h.

const SwapCallback* osg::GraphicsContext::getSwapCallback ( ) const
inline

Get the const swap callback which overrides the GraphicsContext::swapBuffersImplementation().

Definition at line 422 of file GraphicsContext.h.

double osg::GraphicsContext::getTimeSinceLastClear ( ) const
inline

Definition at line 325 of file GraphicsContext.h.

Here is the call graph for this function:

const Traits* osg::GraphicsContext::getTraits ( ) const
inline

Get the traits of the GraphicsContext.

Definition at line 291 of file GraphicsContext.h.

static WindowingSystemInterface* osg::GraphicsContext::getWindowingSystemInterface ( )
static
static void osg::GraphicsContext::incrementContextIDUsageCount ( unsigned int  contextID)
static

Increment the usage count associate with a contextID. The usage count specifies how many graphics contexts a specific contextID is shared between.

Here is the caller graph for this function:

bool osg::GraphicsContext::isCurrent ( ) const
inline

Return true if the current thread has this OpenGL graphics context.

Definition at line 360 of file GraphicsContext.h.

Here is the call graph for this function:

bool osg::GraphicsContext::isRealized ( ) const
inline

Return true if the graphics context has been realized and is ready to use.

Definition at line 342 of file GraphicsContext.h.

virtual bool osg::GraphicsContext::isRealizedImplementation ( ) const
pure virtual

Return true if the graphics context has been realized, and is ready to use, implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::GraphicsWindowEmbedded, osgQt::GraphicsWindowQt, osgViewer::GraphicsWindow, osgViewer::GraphicsWindowX11, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

virtual bool osg::GraphicsContext::isSameKindAs ( const Object object) const
inlinevirtual

Reimplemented from osg::Object.

Definition at line 483 of file GraphicsContext.h.

virtual const char* osg::GraphicsContext::libraryName ( ) const
inlinevirtual

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Implements osg::Object.

Reimplemented in osgViewer::GraphicsWindowEmbedded, osgViewer::GraphicsWindowX11, osgViewer::GraphicsWindow, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

Definition at line 484 of file GraphicsContext.h.

bool osg::GraphicsContext::makeContextCurrent ( GraphicsContext readContext)

Make this graphics context current with specified read context. Implemented by calling makeContextCurrentImplementation(). Returns true on success.

virtual bool osg::GraphicsContext::makeContextCurrentImplementation ( GraphicsContext readContext)
pure virtual

Make this graphics context current with specified read context implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::PixelBufferX11.

bool osg::GraphicsContext::makeCurrent ( )

Make this graphics context current. Implemented by calling makeCurrentImplementation(). Returns true on success.

Here is the caller graph for this function:

virtual bool osg::GraphicsContext::makeCurrentImplementation ( )
pure virtual

Make this graphics context current implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::GraphicsWindowEmbedded, osgQt::GraphicsWindowQt, osgViewer::GraphicsWindow, osgViewer::GraphicsWindowX11, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.

bool osg::GraphicsContext::realize ( )

Realize the GraphicsContext.

virtual bool osg::GraphicsContext::realizeImplementation ( )
pure virtual
static void osg::GraphicsContext::registerGraphicsContext ( GraphicsContext gc)
staticprotected

Register a GraphicsContext.

bool osg::GraphicsContext::releaseContext ( )

Release the graphics context. Returns true on success.

virtual bool osg::GraphicsContext::releaseContextImplementation ( )
pure virtual
void osg::GraphicsContext::remove ( Operation operation)

Remove operation from OperationQueue.

void osg::GraphicsContext::remove ( const std::string &  name)

Remove named operation from OperationQueue.

void osg::GraphicsContext::removeAllOperations ( )

Remove all operations from OperationQueue.

void osg::GraphicsContext::removeCamera ( osg::Camera camera)
protected
void osg::GraphicsContext::resized ( int  x,
int  y,
int  width,
int  height 
)
inline

resized method should be called when the underlying window has been resized and the GraphicsWindow and associated Cameras must be updated to keep in sync with the new size.

Definition at line 443 of file GraphicsContext.h.

virtual void osg::GraphicsContext::resizedImplementation ( int  x,
int  y,
int  width,
int  height 
)
virtual

resized implementation, by default resizes the viewports and aspect ratios the cameras associated with the graphics Window.

virtual void osg::GraphicsContext::runOperations ( )
virtual

Run the operations.

Reimplemented in osgQt::GraphicsWindowQt.

void osg::GraphicsContext::setClearColor ( const Vec4 color)
inline

Sets the clear color.

Definition at line 308 of file GraphicsContext.h.

void osg::GraphicsContext::setClearMask ( GLbitfield  mask)
inline

Set the clear mask used in glClear(..). Defaults to 0 - so no clear is done by default by the GraphicsContext, instead the Cameras attached to the GraphicsContext will do the clear. GraphicsContext::setClearMask() is useful for when the Camera Viewports don't cover the whole context, so the context will fill in the gaps.

Definition at line 316 of file GraphicsContext.h.

static void osg::GraphicsContext::setCompileContext ( unsigned int  contextID,
GraphicsContext gc 
)
static

Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID.

void osg::GraphicsContext::setDefaultFboId ( GLuint  i)
inline

set the default FBO-id, this id will be used when the rendering-backend is finished with RTT FBOs

Definition at line 477 of file GraphicsContext.h.

void osg::GraphicsContext::setGraphicsThread ( GraphicsThread gt)

Assign a graphics thread to the graphics context, so that the thread handles all OpenGL operations.

void osg::GraphicsContext::setResizedCallback ( ResizedCallback rc)
inline

Set the resized callback which overrides the GraphicsConext::realizedImplementation(), allow developers to provide custom behavior in response to a window being resized.

Definition at line 456 of file GraphicsContext.h.

void osg::GraphicsContext::setState ( State state)
inline

Set the State object which tracks the current OpenGL state for this graphics context.

Definition at line 298 of file GraphicsContext.h.

Here is the caller graph for this function:

void osg::GraphicsContext::setSwapCallback ( SwapCallback rc)
inline

Set the swap callback which overrides the GraphicsContext::swapBuffersImplementation(), allowing developers to provide custom behavior for swap. The callback must call GraphicsContext::swapBuffersImplementation()

Definition at line 416 of file GraphicsContext.h.

static void osg::GraphicsContext::setWindowingSystemInterface ( WindowingSystemInterface wsInterface)
static

Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit.

void osg::GraphicsContext::swapBuffers ( )

swap the front and back buffers.

void osg::GraphicsContext::swapBuffersCallbackOrImplemenation ( )
inline

Convenience method for handling whether to call swapbuffers callback or the standard context swapBuffersImplementation. swapBuffersCallbackOrImplemenation() is called by swapBuffers() and osg::SwapBuffersOperation, end users should normally call swapBuffers() rather than swapBuffersCallbackOrImplemenation().

Definition at line 427 of file GraphicsContext.h.

virtual void osg::GraphicsContext::swapBuffersImplementation ( )
pure virtual

Swap the front and back buffers implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Implemented in osgViewer::GraphicsWindowEmbedded, osgViewer::GraphicsWindow, osgQt::GraphicsWindowQt, osgViewer::GraphicsWindowX11, osgViewer::PixelBufferX11, osgViewer::PixelBufferWin32, and osgViewer::GraphicsWindowWin32.

static void osg::GraphicsContext::unregisterGraphicsContext ( GraphicsContext gc)
staticprotected

Unregister a GraphicsContext.

virtual bool osg::GraphicsContext::valid ( ) const
pure virtual

Friends And Related Function Documentation

friend class osg::Camera
friend

Definition at line 509 of file GraphicsContext.h.

Member Data Documentation

Cameras osg::GraphicsContext::_cameras
protected

Definition at line 507 of file GraphicsContext.h.

Vec4 osg::GraphicsContext::_clearColor
protected

Definition at line 514 of file GraphicsContext.h.

GLbitfield osg::GraphicsContext::_clearMask
protected

Definition at line 515 of file GraphicsContext.h.

osg::ref_ptr<Operation> osg::GraphicsContext::_currentOperation
protected

Definition at line 522 of file GraphicsContext.h.

GLuint osg::GraphicsContext::_defaultFboId
protected

Definition at line 531 of file GraphicsContext.h.

ref_ptr<GraphicsThread> osg::GraphicsContext::_graphicsThread
protected

Definition at line 524 of file GraphicsContext.h.

Timer_t osg::GraphicsContext::_lastClearTick
protected

Definition at line 529 of file GraphicsContext.h.

GraphicsOperationQueue osg::GraphicsContext::_operations
protected

Definition at line 521 of file GraphicsContext.h.

osg::ref_ptr<osg::RefBlock> osg::GraphicsContext::_operationsBlock
protected

Definition at line 520 of file GraphicsContext.h.

OpenThreads::Mutex osg::GraphicsContext::_operationsMutex
protected

Definition at line 519 of file GraphicsContext.h.

ref_ptr<ResizedCallback> osg::GraphicsContext::_resizedCallback
protected

Definition at line 526 of file GraphicsContext.h.

ref_ptr<State> osg::GraphicsContext::_state
protected

Definition at line 512 of file GraphicsContext.h.

ref_ptr<SwapCallback> osg::GraphicsContext::_swapCallback
protected

Definition at line 527 of file GraphicsContext.h.

OpenThreads::Thread* osg::GraphicsContext::_threadOfLastMakeCurrent
protected

Definition at line 517 of file GraphicsContext.h.

ref_ptr<Traits> osg::GraphicsContext::_traits
protected

Definition at line 511 of file GraphicsContext.h.


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