|
ROOT
Reference Guide |
|
Go to the documentation of this file.
12 #ifndef ROOT_TGLContext
13 #define ROOT_TGLContext
38 std::unique_ptr<TGLContextPrivate>
fPimpl;
static TGLContext * GetCurrent()
Ask TGLContextPrivate to lookup context in its internal map.
A FreeType GL font manager.
TGLFontManager * GetFontManager()
Get the free-type font-manager associated with this context-identity.
Int_t GetClientRefCnt() const
Bool_t MakeCurrent()
If context is valid (TGLPaintDevice, for which context was created still exists), make it current.
static TGLContextIdentity * GetDefaultIdentity()
Get identity of a default Gl context. Static.
TGLContext & operator=(const TGLContext &)
void AddRef(TGLContext *ctx)
Add context ctx to the list of references.
TGLContextIdentity * fIdentity
TGLContextIdentity * GetIdentity() const
We can have several shared contexts, and gl-scene wants to know, if some context (defined by its iden...
TGLContextIdentity()
Constructor.
void CheckDestroy()
Private function called when reference count is reduced.
std::list< DLRange_t > DLTrash_t
DLTrash_t::const_iterator DLTrashIt_t
static void GlewInit()
Initialize GLEW - static private function.
std::list< TGLContext * > CtxList_t
static TGLContext * GetDefaultContextAny()
Get the first GL context with the default identity.
std::unique_ptr< TGLContextPrivate > fPimpl
std::pair< UInt_t, Int_t > DLRange_t
This class encapsulates window-system specific information about a GL-context and alows their proper ...
virtual ~TGLContextIdentity()
Destructor.
static TGLContextIdentity * GetCurrent()
Find identitfy of current context. Static.
void SwapBuffers()
If context is valid (TGLPaintDevice, for which context was created still exists), swap buffers (in ca...
void Release()
Make the context invalid and (do thread switch, if needed) free resources.
TGLContext(const TGLContext &)
void Release(TGLContext *ctx)
Remove context ctx from the list of references.
void SetContext(TGLWidget *widget, const TGLContext *shareList)
X11 gl-context creation.
static TGLContextIdentity * fgDefaultIdentity
Bool_t ClearCurrent()
Reset current context.
void DeleteGLResources()
Delete GL resources registered for destruction.
#define ClassDef(name, id)
static Bool_t fgGlewInitDone
TGLContext(TGLWidget *glWidget, Bool_t shareDefault=kTRUE, const TGLContext *shareList=0)
TGLContext ctor "from" TGLWidget.
virtual ~TGLContext()
TGLContext dtor.
TGLFontManager * fFontManager
void RegisterDLNameRangeToWipe(UInt_t base, Int_t size)
Remember dl range for deletion in next MakeCurrent or dtor execution.
Identifier of a shared GL-context.