ROOT 6.18/05 Reference Guide |
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. More... | |
virtual | ~TGLContextIdentity () |
Destructor. More... | |
void | AddClientRef () |
void | AddRef (TGLContext *ctx) |
Add context ctx to the list of references. More... | |
void | DeleteGLResources () |
Delete GL resources registered for destruction. More... | |
Int_t | GetClientRefCnt () const |
TGLFontManager * | GetFontManager () |
Get the free-type font-manager associated with this context-identity. More... | |
Int_t | GetRefCnt () const |
Bool_t | IsValid () const |
void | RegisterDLNameRangeToWipe (UInt_t base, Int_t size) |
Remember dl range for deletion in next MakeCurrent or dtor execution. More... | |
void | Release (TGLContext *ctx) |
Remove context ctx from the list of references. More... | |
void | ReleaseClient () |
Static Public Member Functions | |
static TGLContextIdentity * | GetCurrent () |
Find identitfy of current context. Static. More... | |
static TGLContext * | GetDefaultContextAny () |
Get the first GL context with the default identity. More... | |
static TGLContextIdentity * | GetDefaultIdentity () |
Get identity of a default Gl context. Static. More... | |
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. More... | |
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 471 of file TGLContext.cxx.
|
virtual |
Destructor.
Definition at line 479 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 487 of file TGLContext.cxx.
|
private |
Private function called when reference count is reduced.
Definition at line 577 of file TGLContext.cxx.
void TGLContextIdentity::DeleteGLResources | ( | ) |
Delete GL resources registered for destruction.
Definition at line 522 of file TGLContext.cxx.
|
inline |
Definition at line 97 of file TGLContext.h.
|
static |
Find identitfy of current context. Static.
Definition at line 538 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 558 of file TGLContext.cxx.
|
static |
Get identity of a default Gl context. Static.
Definition at line 547 of file TGLContext.cxx.
TGLFontManager * TGLContextIdentity::GetFontManager | ( | ) |
Get the free-type font-manager associated with this context-identity.
Definition at line 568 of file TGLContext.cxx.
|
inline |
Definition at line 96 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 514 of file TGLContext.cxx.
void TGLContextIdentity::Release | ( | TGLContext * | ctx | ) |
Remove context ctx from the list of references.
Definition at line 496 of file TGLContext.cxx.
|
inline |
Definition at line 94 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.