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)

TGLContextIdentity(const TGLContextIdentity&)
voidAddRef(TGLContext* ctx)
static TClass*Class()
Int_tGetClientRefCnt() const
static TGLContextIdentity*GetCurrent()
static TGLContext*GetDefaultContextAny()
static TGLContextIdentity*GetDefaultIdentity()
Int_tGetRefCnt() const
virtual TClass*IsA() const
Bool_tIsValid() const
TGLContextIdentity&operator=(const TGLContextIdentity&)
voidRegisterDLNameRangeToWipe(UInt_t base, Int_t size)
voidRelease(TGLContext* ctx)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

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

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 DeleteDisplayLists()
Delete display-list objects 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.
void CheckDestroy()
Private function called when reference count is reduced.
Bool_t IsValid()
TGLContextIdentity(const TGLContextIdentity& )
virtual ~TGLContextIdentity()
void AddClientRef()
{ ++fClientCnt; }
void ReleaseClient()
{ --fClientCnt; CheckDestroy(); }
Int_t GetRefCnt()
{ return fCnt; }
Int_t GetClientRefCnt()
{ return fClientCnt; }

Author: Timur Pocheptsov, Jun 2007
Last update: root/gl:$Id: TGLContext.h 21453 2007-12-18 15:18:30Z matevz $
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.