ROOT
6.08/07
Reference Guide
graf3d
gl
inc
TGLAdapter.h
Go to the documentation of this file.
1
// @(#)root/gl:$Id$
2
// Author: Timur Pocheptsov, Jun 2007
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TGLAdapter
13
#define ROOT_TGLAdapter
14
15
#ifndef ROOT_TVirtualGL
16
#include "
TVirtualGL.h
"
17
#endif
18
19
class
TGLAdapter
:
public
TGLPaintDevice
{
20
private
:
21
Int_t
fGLDevice
;
22
23
public
:
24
explicit
TGLAdapter
(
Int_t
glDevice = -1);
25
26
Bool_t
MakeCurrent
();
27
void
SwapBuffers
();
28
const
TGLFormat
*
GetPixelFormat
()
const
{
return
0;}
29
const
TGLContext
*
GetContext
()
const
{
return
0;}
30
31
void
SetGLDevice
(
Int_t
glDevice)
32
{
33
fGLDevice = glDevice;
34
}
35
36
void
ReadGLBuffer
();
37
void
SelectOffScreenDevice
();
38
void
MarkForDirectCopy
(
Bool_t
isDirect);
39
void
ExtractViewport
(
Int_t
*vp)
const
;
40
41
private
:
42
TGLAdapter
(
const
TGLAdapter
&);
43
TGLAdapter
&
operator =
(
const
TGLAdapter
&);
44
45
void
AddContext
(
TGLContext
*){}
46
void
RemoveContext
(
TGLContext
*){}
47
48
ClassDef
(
TGLAdapter
, 0)
// Allow plot-painters to be used for gl-inpad and gl-viewer.
49
};
50
51
#endif
TGLAdapter::RemoveContext
void RemoveContext(TGLContext *)
Definition:
TGLAdapter.h:46
TVirtualGL.h
TGLPaintDevice
Definition:
TVirtualGL.h:150
TGLAdapter::SelectOffScreenDevice
void SelectOffScreenDevice()
Select off-screen device for rendering.
Definition:
TGLAdapter.cxx:73
TGLAdapter::operator=
TGLAdapter & operator=(const TGLAdapter &)
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TGLAdapter::SetGLDevice
void SetGLDevice(Int_t glDevice)
Definition:
TGLAdapter.h:31
TGLAdapter::TGLAdapter
TGLAdapter(Int_t glDevice=-1)
Constructor.
Definition:
TGLAdapter.cxx:24
TGLFormat
Encapsulation of format / contents of an OpenGL buffer.
Definition:
TGLFormat.h:35
TGLAdapter::SwapBuffers
void SwapBuffers()
Swap front/back buffers.
Definition:
TGLAdapter.cxx:40
TGLAdapter::ReadGLBuffer
void ReadGLBuffer()
Read gl buffer into x-pixmap.
Definition:
TGLAdapter.cxx:57
TGLAdapter::GetPixelFormat
const TGLFormat * GetPixelFormat() const
Definition:
TGLAdapter.h:28
TGLAdapter::MarkForDirectCopy
void MarkForDirectCopy(Bool_t isDirect)
Mark gl-device for later copying into x-pixmap.
Definition:
TGLAdapter.cxx:49
TGLAdapter::AddContext
void AddContext(TGLContext *)
Definition:
TGLAdapter.h:45
TGLContext
This class encapsulates window-system specific information about a GL-context and alows their proper ...
Definition:
TGLContext.h:35
TGLAdapter::fGLDevice
Int_t fGLDevice
Definition:
TGLAdapter.h:21
TGLAdapter
Allow plot-painters to be used for gl-inpad and gl-viewer.
Definition:
TGLAdapter.h:19
TGLAdapter::ExtractViewport
void ExtractViewport(Int_t *vp) const
Extract viewport from gl.
Definition:
TGLAdapter.cxx:65
TGLAdapter::MakeCurrent
Bool_t MakeCurrent()
Set as current GL context.
Definition:
TGLAdapter.cxx:32
TGLAdapter::GetContext
const TGLContext * GetContext() const
Definition:
TGLAdapter.h:29