class TGLContext

 This class encapsulates window-system specific information about a
 GL-context and alows their proper management in ROOT.

Function Members (Methods)

TGLContext(TGLWidget* glWidget)
TGLContext(TGLWidget* glWidget, const TGLContext* shareList)
static TClass*Class()
static TGLContext*GetCurrent()
TGLContextIdentity*GetIdentity() const
virtual TClass*IsA() const
Bool_tIsValid() const
voidSetContext(TGLWidget* widget, const TGLContext* shareList)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
TGLContext(const TGLContext&)
TGLContext&operator=(const TGLContext&)

Data Members

Bool_tfFromCtorTo prohibit user's calls of SetContext.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLContext(TGLWidget *wid)
TGLContext ctor "from" TGLWidget. Use default shareList.
Makes thread switching.
TGLContext(TGLWidget* glWidget, const TGLContext* shareList)
TGLContext ctor "from" TGLWidget. Specify shareList, can be null.
Makes thread switching.
void SetContext(TGLWidget* widget, const TGLContext* shareList)
WIN32 gl-context creation. Defined as a member-function (this code removed from ctor)
to make WIN32/X11 separation cleaner.
This function is public only for calls via gROOT and called from ctor.
Bool_t MakeCurrent()
If context is valid (TGLPaintDevice, for which context was created still exists),
make it current.
void SwapBuffers()
If context is valid (TGLPaintDevice, for which context was created still exists),
swap buffers (in case of P-buffer call glFinish()).
void Release()
Make the context invalid and (do thread switch, if needed)
free resources.
TGLContext dtor. If it's called before TGLPaintDevice's dtor (context is valid)
resource will be freed and context un-registered.
TGLContextIdentity * GetIdentity()
We can have several shared contexts,
and gl-scene wants to know, if some context
(defined by its identity) can be used.
TGLContext * GetCurrent()
Ask TGLContextPrivate to lookup context in its internal map.
TGLContext(TGLWidget *glWidget)
Bool_t IsValid()

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.