TGLContext Class Reference

#include <TGLContext.h>

List of all members.

Public Member Functions

 TGLContext (TGLWidget *glWidget, Bool_t shareDefault=kTRUE, const TGLContext *shareList=0)
TGLContextIdentityGetIdentity () const
virtual ~TGLContext ()
Bool_t MakeCurrent ()
Bool_t ClearCurrent ()
void SwapBuffers ()
void SetContext (TGLWidget *widget, const TGLContext *shareList)
void Release ()
Bool_t IsValid () const
 TGLContext (TGLWidget *glWidget, Bool_t shareDefault=kTRUE, const TGLContext *shareList=0)
TGLContextIdentityGetIdentity () const
virtual ~TGLContext ()
Bool_t MakeCurrent ()
Bool_t ClearCurrent ()
void SwapBuffers ()
void SetContext (TGLWidget *widget, const TGLContext *shareList)
void Release ()
Bool_t IsValid () const

Static Public Member Functions

static TGLContextGetCurrent ()
static void GlewInit ()
static TGLContextGetCurrent ()
static void GlewInit ()

Private Member Functions

 TGLContext (const TGLContext &)
TGLContextoperator= (const TGLContext &)
 ClassDef (TGLContext, 0)
 TGLContext (const TGLContext &)
TGLContextoperator= (const TGLContext &)
 ClassDef (TGLContext, 0)

Private Attributes

TGLPaintDevicefDevice
TGLContextPrivatefPimpl
Bool_t fFromCtor
Bool_t fValid
TGLContextIdentityfIdentity
TGLPaintDevicefDevice
TGLContextPrivatefPimpl
TGLContextIdentityfIdentity

Static Private Attributes

static Bool_t fgGlewInitDone

Friends

class TGLContextPrivate
class TGLWidget


Detailed Description

Definition at line 33 of file TGLContext.h.


Constructor & Destructor Documentation

TGLContext::TGLContext ( TGLWidget glWidget,
Bool_t  shareDefault = kTRUE,
const TGLContext shareList = 0 
)

Definition at line 42 of file TGLContext.cxx.

References TGLContextIdentity::AddRef(), fFromCtor, fIdentity, Form(), TGLContextIdentity::GetDefaultContextAny(), TGLContextIdentity::GetDefaultIdentity(), GetIdentity(), gROOT, gVirtualX, kFALSE, TROOT::ProcessLineFast(), and SetContext().

TGLContext::~TGLContext (  )  [virtual]

Definition at line 331 of file TGLContext.cxx.

References fDevice, fIdentity, fPimpl, fValid, TGLContextIdentity::Release(), Release(), and TGLPaintDevice::RemoveContext().

TGLContext::TGLContext ( const TGLContext  )  [private]

TGLContext::TGLContext ( TGLWidget glWidget,
Bool_t  shareDefault = kTRUE,
const TGLContext shareList = 0 
)

virtual TGLContext::~TGLContext (  )  [virtual]

TGLContext::TGLContext ( const TGLContext  )  [private]


Member Function Documentation

TGLContextIdentity * TGLContext::GetIdentity (  )  const

Definition at line 347 of file TGLContext.cxx.

References fIdentity.

Referenced by TGLContextIdentity::GetCurrent(), and TGLContext().

Bool_t TGLContext::MakeCurrent (  ) 

Definition at line 268 of file TGLContext.cxx.

References TGLContextIdentity::DeleteGLResources(), Error, TGLContextPrivate::fDpy, fgGlewInitDone, TGLContextPrivate::fGLContext, fIdentity, fPimpl, fValid, TGLContextPrivate::fWindowID, GlewInit(), glXMakeCurrent(), and kFALSE.

Referenced by TGLWidget::MakeCurrent().

Bool_t TGLContext::ClearCurrent (  ) 

Definition at line 293 of file TGLContext.cxx.

References TGLContextPrivate::fDpy, fPimpl, glXMakeCurrent(), and None.

Referenced by TGLWidget::ClearCurrent().

void TGLContext::SwapBuffers (  ) 

Definition at line 300 of file TGLContext.cxx.

References Error, TGLContextPrivate::fDpy, fPimpl, fValid, TGLContextPrivate::fWindowID, glFinish(), and glXSwapBuffers().

Referenced by TGLWidget::SwapBuffers().

void TGLContext::SetContext ( TGLWidget widget,
const TGLContext shareList 
)

Definition at line 232 of file TGLContext.cxx.

References TGLPaintDevice::AddContext(), Display(), Error, fDevice, TGLContextPrivate::fDpy, fFromCtor, TGLContextPrivate::fGLContext, fPimpl, fValid, TGLContextPrivate::fVisualInfo, TGLContextPrivate::fWindowID, TGObject::GetId(), TGLWidget::GetInnerData(), glXCreateContext(), kTRUE, None, TGLContextPrivate::RegisterContext(), and True.

Referenced by TGLContext().

void TGLContext::Release (  ) 

Definition at line 317 of file TGLContext.cxx.

References TGLContextPrivate::fDpy, TGLContextPrivate::fGLContext, fPimpl, fValid, glXDestroyContext(), kFALSE, and TGLContextPrivate::RemoveContext().

Referenced by ~TGLContext().

Bool_t TGLContext::IsValid (  )  const [inline]

Definition at line 68 of file TGLContext.h.

References fValid.

Referenced by TGLContextPrivate::RegisterContext(), and TGLContextPrivate::RemoveContext().

TGLContext * TGLContext::GetCurrent (  )  [static]

Definition at line 356 of file TGLContext.cxx.

References TGLContextPrivate::GetCurrentContext().

Referenced by G__G__GL_229_0_9(), G__setup_memfuncTGLContext(), and TGLContextIdentity::GetCurrent().

void TGLContext::GlewInit (  )  [static]

Definition at line 77 of file TGLContext.cxx.

References fgGlewInitDone, gDebug, GLEW_OK, glewInit(), Info, kTRUE, and Warning().

Referenced by G__G__GL_229_0_10(), G__setup_memfuncTGLContext(), and MakeCurrent().

TGLContext& TGLContext::operator= ( const TGLContext  )  [private]

TGLContext::ClassDef ( TGLContext  ,
 
) [private]

TGLContextIdentity* TGLContext::GetIdentity (  )  const

Bool_t TGLContext::MakeCurrent (  ) 

Bool_t TGLContext::ClearCurrent (  ) 

void TGLContext::SwapBuffers (  ) 

void TGLContext::SetContext ( TGLWidget widget,
const TGLContext shareList 
)

void TGLContext::Release (  ) 

Bool_t TGLContext::IsValid (  )  const [inline]

Definition at line 68 of file TGLContext.h.

References fValid.

static TGLContext* TGLContext::GetCurrent (  )  [static]

static void TGLContext::GlewInit (  )  [static]

TGLContext& TGLContext::operator= ( const TGLContext  )  [private]

TGLContext::ClassDef ( TGLContext  ,
 
) [private]


Friends And Related Function Documentation

TGLContextPrivate [friend]

Definition at line 35 of file TGLContext.h.

TGLWidget [friend]

Definition at line 36 of file TGLContext.h.


Member Data Documentation

TGLPaintDevice* TGLContext::fDevice [private]

Definition at line 40 of file TGLContext.h.

Referenced by SetContext(), and ~TGLContext().

TGLContextPrivate* TGLContext::fPimpl [private]

Definition at line 41 of file TGLContext.h.

Referenced by ClearCurrent(), MakeCurrent(), TGLContextPrivate::RegisterContext(), Release(), TGLContextPrivate::RemoveContext(), SetContext(), SwapBuffers(), and ~TGLContext().

Bool_t TGLContext::fFromCtor [private]

Definition at line 43 of file TGLContext.h.

Referenced by SetContext(), and TGLContext().

Bool_t TGLContext::fValid [private]

Definition at line 44 of file TGLContext.h.

Referenced by IsValid(), MakeCurrent(), Release(), SetContext(), SwapBuffers(), and ~TGLContext().

TGLContextIdentity* TGLContext::fIdentity [private]

Definition at line 46 of file TGLContext.h.

Referenced by GetIdentity(), MakeCurrent(), TGLContext(), and ~TGLContext().

static Bool_t TGLContext::fgGlewInitDone [static, private]

Definition at line 48 of file TGLContext.h.

Referenced by GlewInit(), and MakeCurrent().

TGLPaintDevice* TGLContext::fDevice [private]

Definition at line 40 of file TGLContext.h.

TGLContextPrivate* TGLContext::fPimpl [private]

Definition at line 41 of file TGLContext.h.

TGLContextIdentity* TGLContext::fIdentity [private]

Definition at line 46 of file TGLContext.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:58 2011 for ROOT_528-00b_version by  doxygen 1.5.1