ROOT logo
ROOT » GRAF3D » GL » TGLContextIdentity

class TGLContextIdentity


 Identifier of a shared GL-context.
 Objects shared among GL-contexts include:
 display-list definitions, texture objects and shader programs.

Function Members (Methods)

private:
voidCheckDestroy()

Data Members

protected:
TGLFontManager*fFontManagerFreeType font manager.
private:
Int_tfClientCnt
Int_tfCnt
list<TGLContext*>fCtxs
list<pair<unsigned int,int> >fDLTrash
static TGLContextIdentity*fgDefaultIdentity

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLContextIdentity()
 Constructor.
~TGLContextIdentity()
 Destructor.
void AddRef(TGLContext* ctx)
Add context ctx to the list of references.
void Release(TGLContext* ctx)
Remove context ctx from the list of references.
void RegisterDLNameRangeToWipe(UInt_t base, Int_t size)
Remember dl range for deletion in next MakeCurrent or dtor execution.
void DeleteGLResources()
Delete GL resources registered for destruction.
TGLContextIdentity* GetCurrent()
Find identitfy of current context. Static.
TGLContextIdentity* GetDefaultIdentity()
Get identity of a default Gl context. Static.
TGLContext* GetDefaultContextAny()
Get the first GL context with the default identity.
Can return zero, but that's OK, too. Static.
TGLFontManager* GetFontManager()
Get the free-type font-manager associated with this context-identity.
void CheckDestroy()
Private function called when reference count is reduced.
Bool_t IsValid() const
{ return fValid; }
TGLContextIdentity()
void AddClientRef()
{ ++fClientCnt; }
void ReleaseClient()
Int_t GetRefCnt() const
{ return fCnt; }
Int_t GetClientRefCnt() const
{ return fClientCnt; }