Identifier of a shared GL-context.
Objects shared among GL-contexts include: display-list definitions, texture objects and shader programs.
Definition at line 80 of file TGLContext.h.
Public Member Functions | |
| TGLContextIdentity () | |
| Constructor. | |
| virtual | ~TGLContextIdentity () |
| Destructor. | |
| void | AddClientRef () |
| void | AddRef (TGLContext *ctx) |
| Add context ctx to the list of references. | |
| void | DeleteGLResources () |
| Delete GL resources registered for destruction. | |
| Int_t | GetClientRefCnt () const |
| TGLFontManager * | GetFontManager () |
| Get the free-type font-manager associated with this context-identity. | |
| Int_t | GetRefCnt () const |
| virtual TClass * | IsA () const |
| Bool_t | IsValid () const |
| void | RegisterDLNameRangeToWipe (UInt_t base, Int_t size) |
| Remember dl range for deletion in next MakeCurrent or dtor execution. | |
| void | Release (TGLContext *ctx) |
| Remove context ctx from the list of references. | |
| void | ReleaseClient () |
| virtual void | Streamer (TBuffer &) |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
| static TGLContextIdentity * | GetCurrent () |
| Find identitfy of current context. Static. | |
| static TGLContext * | GetDefaultContextAny () |
| Get the first GL context with the default identity. | |
| static TGLContextIdentity * | GetDefaultIdentity () |
| Get identity of a default Gl context. Static. | |
Protected Attributes | |
| TGLFontManager * | fFontManager |
Private Types | |
| typedef std::list< TGLContext * > | CtxList_t |
| typedef std::pair< UInt_t, Int_t > | DLRange_t |
| typedef std::list< DLRange_t > | DLTrash_t |
| typedef DLTrash_t::const_iterator | DLTrashIt_t |
Private Member Functions | |
| void | CheckDestroy () |
| Private function called when reference count is reduced. | |
Private Attributes | |
| Int_t | fClientCnt |
| Int_t | fCnt |
| CtxList_t | fCtxs |
| DLTrash_t | fDLTrash |
Static Private Attributes | |
| static TGLContextIdentity * | fgDefaultIdentity = new TGLContextIdentity |
#include <TGLContext.h>
|
private |
Definition at line 121 of file TGLContext.h.
|
private |
Definition at line 117 of file TGLContext.h.
|
private |
Definition at line 118 of file TGLContext.h.
|
private |
Definition at line 119 of file TGLContext.h.
| TGLContextIdentity::TGLContextIdentity | ( | ) |
Constructor.
Definition at line 472 of file TGLContext.cxx.
|
virtual |
Destructor.
Definition at line 480 of file TGLContext.cxx.
|
inline |
Definition at line 93 of file TGLContext.h.
| void TGLContextIdentity::AddRef | ( | TGLContext * | ctx | ) |
Add context ctx to the list of references.
Definition at line 488 of file TGLContext.cxx.
|
private |
Private function called when reference count is reduced.
Definition at line 578 of file TGLContext.cxx.
Definition at line 128 of file TGLContext.h.
Definition at line 128 of file TGLContext.h.
| void TGLContextIdentity::DeleteGLResources | ( | ) |
Delete GL resources registered for destruction.
Definition at line 523 of file TGLContext.cxx.
|
inline |
Definition at line 97 of file TGLContext.h.
|
static |
Find identitfy of current context. Static.
Definition at line 539 of file TGLContext.cxx.
|
static |
Get the first GL context with the default identity.
Can return zero, but that's OK, too. Static.
Definition at line 559 of file TGLContext.cxx.
|
static |
Get identity of a default Gl context. Static.
Definition at line 548 of file TGLContext.cxx.
| TGLFontManager * TGLContextIdentity::GetFontManager | ( | ) |
Get the free-type font-manager associated with this context-identity.
Definition at line 569 of file TGLContext.cxx.
|
inline |
Definition at line 96 of file TGLContext.h.
Definition at line 128 of file TGLContext.h.
|
inline |
Definition at line 99 of file TGLContext.h.
Remember dl range for deletion in next MakeCurrent or dtor execution.
Definition at line 515 of file TGLContext.cxx.
| void TGLContextIdentity::Release | ( | TGLContext * | ctx | ) |
Remove context ctx from the list of references.
Definition at line 497 of file TGLContext.cxx.
|
inline |
Definition at line 94 of file TGLContext.h.
|
inline |
Definition at line 128 of file TGLContext.h.
|
private |
Definition at line 113 of file TGLContext.h.
|
private |
Definition at line 112 of file TGLContext.h.
|
private |
Definition at line 124 of file TGLContext.h.
|
private |
Definition at line 123 of file TGLContext.h.
|
protected |
Definition at line 84 of file TGLContext.h.
|
staticprivate |
Definition at line 126 of file TGLContext.h.