![]() |
ROOT
6.06/09
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 83 of file TGLContext.h.
Public Member Functions | |
| TGLContextIdentity () | |
| virtual | ~TGLContextIdentity () |
| Destructor. More... | |
| void | AddRef (TGLContext *ctx) |
| Add context ctx to the list of references. More... | |
| void | Release (TGLContext *ctx) |
| Remove context ctx from the list of references. More... | |
| void | AddClientRef () |
| void | ReleaseClient () |
| Int_t | GetRefCnt () const |
| Int_t | GetClientRefCnt () 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 | DeleteGLResources () |
| Delete GL resources registered for destruction. More... | |
| TGLFontManager * | GetFontManager () |
| Get the free-type font-manager associated with this context-identity. More... | |
Static Public Member Functions | |
| static TGLContextIdentity * | GetCurrent () |
| Find identitfy of current context. Static. More... | |
| static TGLContextIdentity * | GetDefaultIdentity () |
| Get identity of a default Gl context. Static. More... | |
| static TGLContext * | GetDefaultContextAny () |
| Get the first GL context with the default identity. More... | |
Protected Attributes | |
| TGLFontManager * | fFontManager |
Private Types | |
| typedef std::pair< UInt_t, Int_t > | DLRange_t |
| typedef std::list< DLRange_t > | DLTrash_t |
| typedef DLTrash_t::const_iterator | DLTrashIt_t |
| typedef std::list< TGLContext * > | CtxList_t |
Private Member Functions | |
| void | CheckDestroy () |
| Private function called when reference count is reduced. More... | |
| ClassDef (TGLContextIdentity, 0) | |
Private Attributes | |
| Int_t | fCnt |
| Int_t | fClientCnt |
| DLTrash_t | fDLTrash |
| CtxList_t | fCtxs |
Static Private Attributes | |
| static TGLContextIdentity * | fgDefaultIdentity |
#include <TGLContext.h>
Collaboration diagram for TGLContextIdentity:
|
private |
Definition at line 124 of file TGLContext.h.
|
private |
Definition at line 120 of file TGLContext.h.
|
private |
Definition at line 121 of file TGLContext.h.
|
private |
Definition at line 122 of file TGLContext.h.
| TGLContextIdentity::TGLContextIdentity | ( | ) |
Referenced by GetDefaultIdentity().
|
virtual |
Destructor.
Definition at line 487 of file TGLContext.cxx.
|
inline |
Definition at line 96 of file TGLContext.h.
Referenced by TGLScene::PreDraw().
| void TGLContextIdentity::AddRef | ( | TGLContext * | ctx | ) |
Add context ctx to the list of references.
Definition at line 495 of file TGLContext.cxx.
Referenced by TGLContext::TGLContext(), and TGLViewer::TGLViewer().
|
private |
Private function called when reference count is reduced.
Definition at line 585 of file TGLContext.cxx.
Referenced by Release(), and ReleaseClient().
|
private |
| void TGLContextIdentity::DeleteGLResources | ( | ) |
Delete GL resources registered for destruction.
Definition at line 530 of file TGLContext.cxx.
Referenced by TGLContext::MakeCurrent(), and TGLViewer::PreRender().
|
inline |
Definition at line 100 of file TGLContext.h.
|
static |
Find identitfy of current context. Static.
Definition at line 546 of file TGLContext.cxx.
Referenced by TGLViewerBase::PreRender().
|
static |
Get the first GL context with the default identity.
Can return zero, but that's OK, too. Static.
Definition at line 566 of file TGLContext.cxx.
Referenced by TGLContext::TGLContext().
|
static |
Get identity of a default Gl context. Static.
Definition at line 555 of file TGLContext.cxx.
Referenced by TGLContext::TGLContext().
| TGLFontManager * TGLContextIdentity::GetFontManager | ( | ) |
Get the free-type font-manager associated with this context-identity.
Definition at line 576 of file TGLContext.cxx.
Referenced by TGLRnrCtx::RegisterFontNoScale(), and TGLRnrCtx::ReleaseFont().
|
inline |
Definition at line 99 of file TGLContext.h.
|
inline |
Definition at line 102 of file TGLContext.h.
Referenced by TGLScene::ReleaseGLCtxIdentity().
Remember dl range for deletion in next MakeCurrent or dtor execution.
Definition at line 522 of file TGLContext.cxx.
Referenced by TGLLogicalShape::PurgeDLRange().
| void TGLContextIdentity::Release | ( | TGLContext * | ctx | ) |
Remove context ctx from the list of references.
Definition at line 504 of file TGLContext.cxx.
Referenced by TGLContext::~TGLContext(), and TGLViewer::~TGLViewer().
|
inline |
Definition at line 97 of file TGLContext.h.
Referenced by TGLScene::ReleaseGLCtxIdentity(), and TGLScene::~TGLScene().
|
private |
Definition at line 116 of file TGLContext.h.
Referenced by AddClientRef(), CheckDestroy(), GetClientRefCnt(), and ReleaseClient().
|
private |
Definition at line 115 of file TGLContext.h.
Referenced by AddRef(), CheckDestroy(), GetRefCnt(), IsValid(), and Release().
|
private |
Definition at line 127 of file TGLContext.h.
Referenced by AddRef(), GetDefaultContextAny(), and Release().
|
private |
Definition at line 126 of file TGLContext.h.
Referenced by DeleteGLResources(), and RegisterDLNameRangeToWipe().
|
protected |
Definition at line 87 of file TGLContext.h.
Referenced by DeleteGLResources(), GetFontManager(), and ~TGLContextIdentity().
|
staticprivate |
Definition at line 129 of file TGLContext.h.
Referenced by CheckDestroy(), GetDefaultContextAny(), and GetDefaultIdentity().