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)

public:
TGLContextIdentity()
TGLContextIdentity(const TGLContextIdentity&)
virtual~TGLContextIdentity()
voidAddClientRef()
voidAddRef(TGLContext* ctx)
static TClass*Class()
voidDeleteGLResources()
Int_tGetClientRefCnt() const
static TGLContextIdentity*GetCurrent()
static TGLContext*GetDefaultContextAny()
static TGLContextIdentity*GetDefaultIdentity()
TGLFontManager*GetFontManager()
Int_tGetRefCnt() const
virtual TClass*IsA() const
Bool_tIsValid() const
TGLContextIdentity&operator=(const TGLContextIdentity&)
voidRegisterDLNameRangeToWipe(UInt_t base, Int_t size)
voidRelease(TGLContext* ctx)
voidReleaseClient()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
voidCheckDestroy()

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLContextIdentity(const 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()
{ return fValid; }
TGLContextIdentity(const TGLContextIdentity& )
void AddClientRef()
{ ++fClientCnt; }
void ReleaseClient()
{ --fClientCnt; CheckDestroy(); }
Int_t GetRefCnt()
{ return fCnt; }
Int_t GetClientRefCnt()
{ return fClientCnt; }

Author: Timur Pocheptsov, Jun 2007
Last change: root/gl:$Id: TGLContext.h 26250 2008-11-17 20:56:44Z matevz $
Last generated: 2008-11-18 08:46
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.