ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
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
#include "
TVirtualGL.h
"
16
17
class
TGLAdapter
:
public
TGLPaintDevice
{
18
private
:
19
Int_t
fGLDevice
;
20
21
public
:
22
explicit
TGLAdapter
(
Int_t
glDevice = -1);
23
24
Bool_t
MakeCurrent
();
25
void
SwapBuffers
();
26
const
TGLFormat
*
GetPixelFormat
()
const
{
return
0;}
27
const
TGLContext
*
GetContext
()
const
{
return
0;}
28
29
void
SetGLDevice
(
Int_t
glDevice)
30
{
31
fGLDevice
= glDevice;
32
}
33
34
void
ReadGLBuffer
();
35
void
SelectOffScreenDevice
();
36
void
MarkForDirectCopy
(
Bool_t
isDirect);
37
void
ExtractViewport
(
Int_t
*vp)
const
;
38
39
private
:
40
TGLAdapter
(
const
TGLAdapter
&);
41
TGLAdapter
&
operator =
(
const
TGLAdapter
&);
42
43
void
AddContext
(
TGLContext
*){}
44
void
RemoveContext
(
TGLContext
*){}
45
46
ClassDef
(
TGLAdapter
, 0)
// Allow plot-painters to be used for gl-inpad and gl-viewer.
47
};
48
49
#endif
Int_t
int Int_t
Definition
RtypesCore.h:45
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
TVirtualGL.h
TGLAdapter
Allow plot-painters to be used for gl-inpad and gl-viewer.
Definition
TGLAdapter.h:17
TGLAdapter::ExtractViewport
void ExtractViewport(Int_t *vp) const
Extract viewport from gl.
Definition
TGLAdapter.cxx:65
TGLAdapter::SelectOffScreenDevice
void SelectOffScreenDevice()
Select off-screen device for rendering.
Definition
TGLAdapter.cxx:73
TGLAdapter::GetContext
const TGLContext * GetContext() const
Definition
TGLAdapter.h:27
TGLAdapter::ReadGLBuffer
void ReadGLBuffer()
Read gl buffer into x-pixmap.
Definition
TGLAdapter.cxx:57
TGLAdapter::operator=
TGLAdapter & operator=(const TGLAdapter &)
TGLAdapter::TGLAdapter
TGLAdapter(const TGLAdapter &)
TGLAdapter::GetPixelFormat
const TGLFormat * GetPixelFormat() const
Definition
TGLAdapter.h:26
TGLAdapter::SwapBuffers
void SwapBuffers()
Swap front/back buffers.
Definition
TGLAdapter.cxx:40
TGLAdapter::SetGLDevice
void SetGLDevice(Int_t glDevice)
Definition
TGLAdapter.h:29
TGLAdapter::AddContext
void AddContext(TGLContext *)
Definition
TGLAdapter.h:43
TGLAdapter::MakeCurrent
Bool_t MakeCurrent()
Set as current GL context.
Definition
TGLAdapter.cxx:32
TGLAdapter::fGLDevice
Int_t fGLDevice
Definition
TGLAdapter.h:19
TGLAdapter::RemoveContext
void RemoveContext(TGLContext *)
Definition
TGLAdapter.h:44
TGLAdapter::MarkForDirectCopy
void MarkForDirectCopy(Bool_t isDirect)
Mark gl-device for later copying into x-pixmap.
Definition
TGLAdapter.cxx:49
TGLContext
This class encapsulates window-system specific information about a GL-context and alows their proper ...
Definition
TGLContext.h:31
TGLFormat
Encapsulation of format / contents of an OpenGL buffer.
Definition
TGLFormat.h:36
TGLPaintDevice
Definition
TVirtualGL.h:144
bool
int
graf3d
gl
inc
TGLAdapter.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:25 (GVA Time) using Doxygen 1.9.8