All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlfGLContextRegistry Class Reference

Registry of GlfGLContexts. More...

Inherits noncopyable.

Public Member Functions

bool IsInitialized () const
 Returns whether the registry has any registered interfaces. More...
 
void Add (GlfGLContextRegistrationInterface *)
 Add a registration object to the registry. More...
 
GlfGLContextSharedPtr GetShared ()
 Returns the shared context, if any. More...
 
GlfGLContextSharedPtr GetCurrent ()
 Returns the context that matches the raw context, if any. More...
 
void DidMakeCurrent (const GlfGLContextSharedPtr &context)
 Registers this context. It must be current. More...
 
void Remove (const GlfGLContext *context)
 Removes the context. More...
 

Static Public Member Functions

static GlfGLContextRegistryGetInstance ()
 

Friends

class TfSingleton< GlfGLContextRegistry >
 

Detailed Description

Registry of GlfGLContexts.

Definition at line 49 of file glContextRegistry.h.

Member Function Documentation

Add a registration object to the registry.

This takes ownership of the object.

void DidMakeCurrent ( const GlfGLContextSharedPtr &  context)

Registers this context. It must be current.

GlfGLContextSharedPtr GetCurrent ( )

Returns the context that matches the raw context, if any.

GlfGLContextSharedPtr GetShared ( )

Returns the shared context, if any.

bool IsInitialized ( ) const

Returns whether the registry has any registered interfaces.

void Remove ( const GlfGLContext context)

Removes the context.


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