Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGLAdapter Class Reference

Allow plot-painters to be used for gl-inpad and gl-viewer.

Definition at line 17 of file TGLAdapter.h.

Public Member Functions

 TGLAdapter (Int_t glDevice=-1)
 Constructor. More...
 
void ExtractViewport (Int_t *vp) const
 Extract viewport from gl. More...
 
const TGLContextGetContext () const
 
const TGLFormatGetPixelFormat () const
 
Bool_t MakeCurrent ()
 Set as current GL context. More...
 
void MarkForDirectCopy (Bool_t isDirect)
 Mark gl-device for later copying into x-pixmap. More...
 
void ReadGLBuffer ()
 Read gl buffer into x-pixmap. More...
 
void SelectOffScreenDevice ()
 Select off-screen device for rendering. More...
 
void SetGLDevice (Int_t glDevice)
 
void SwapBuffers ()
 Swap front/back buffers. More...
 
- Public Member Functions inherited from TGLPaintDevice
virtual ~TGLPaintDevice ()
 

Private Member Functions

 TGLAdapter (const TGLAdapter &)
 
void AddContext (TGLContext *)
 
TGLAdapteroperator= (const TGLAdapter &)
 
void RemoveContext (TGLContext *)
 

Private Attributes

Int_t fGLDevice
 

#include <TGLAdapter.h>

Inheritance diagram for TGLAdapter:
[legend]

Constructor & Destructor Documentation

◆ TGLAdapter() [1/2]

TGLAdapter::TGLAdapter ( Int_t  glDevice = -1)
explicit

Constructor.

Definition at line 24 of file TGLAdapter.cxx.

◆ TGLAdapter() [2/2]

TGLAdapter::TGLAdapter ( const TGLAdapter )
private

Member Function Documentation

◆ AddContext()

void TGLAdapter::AddContext ( TGLContext )
inlineprivatevirtual

Implements TGLPaintDevice.

Definition at line 43 of file TGLAdapter.h.

◆ ExtractViewport()

void TGLAdapter::ExtractViewport ( Int_t vp) const
virtual

Extract viewport from gl.

Implements TGLPaintDevice.

Definition at line 65 of file TGLAdapter.cxx.

◆ GetContext()

const TGLContext* TGLAdapter::GetContext ( ) const
inlinevirtual

Implements TGLPaintDevice.

Definition at line 27 of file TGLAdapter.h.

◆ GetPixelFormat()

const TGLFormat* TGLAdapter::GetPixelFormat ( ) const
inlinevirtual

Implements TGLPaintDevice.

Definition at line 26 of file TGLAdapter.h.

◆ MakeCurrent()

Bool_t TGLAdapter::MakeCurrent ( )
virtual

Set as current GL context.

Implements TGLPaintDevice.

Definition at line 32 of file TGLAdapter.cxx.

◆ MarkForDirectCopy()

void TGLAdapter::MarkForDirectCopy ( Bool_t  isDirect)

Mark gl-device for later copying into x-pixmap.

Definition at line 49 of file TGLAdapter.cxx.

◆ operator=()

TGLAdapter& TGLAdapter::operator= ( const TGLAdapter )
private

◆ ReadGLBuffer()

void TGLAdapter::ReadGLBuffer ( )

Read gl buffer into x-pixmap.

Definition at line 57 of file TGLAdapter.cxx.

◆ RemoveContext()

void TGLAdapter::RemoveContext ( TGLContext )
inlineprivatevirtual

Implements TGLPaintDevice.

Definition at line 44 of file TGLAdapter.h.

◆ SelectOffScreenDevice()

void TGLAdapter::SelectOffScreenDevice ( )

Select off-screen device for rendering.

Definition at line 73 of file TGLAdapter.cxx.

◆ SetGLDevice()

void TGLAdapter::SetGLDevice ( Int_t  glDevice)
inline

Definition at line 29 of file TGLAdapter.h.

◆ SwapBuffers()

void TGLAdapter::SwapBuffers ( )
virtual

Swap front/back buffers.

Implements TGLPaintDevice.

Definition at line 40 of file TGLAdapter.cxx.

Member Data Documentation

◆ fGLDevice

Int_t TGLAdapter::fGLDevice
private

Definition at line 19 of file TGLAdapter.h.

Libraries for TGLAdapter:
[legend]

The documentation for this class was generated from the following files: