Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
x
y
z
Variables
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
e
t
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
p
q
r
s
t
u
v
w
y
Variables
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
+
Enumerator
e
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
IVT
src
gui
GTK
GTKGLContext.h
Go to the documentation of this file.
1
// ****************************************************************************
2
// Filename: GTKGLContext.h
3
// Author: Florian Hecht
4
// Date: 2009
5
// ****************************************************************************
6
7
8
#ifndef _GTK_GL_CONTEXT_H_
9
#define _GTK_GL_CONTEXT_H_
10
11
12
// ****************************************************************************
13
// Necessary includes
14
// ****************************************************************************
15
16
#include <GL/glx.h>
17
#include <GL/gl.h>
18
19
20
// ****************************************************************************
21
// Forward declarations and typedefs
22
// ****************************************************************************
23
24
struct
_GdkDrawable;
25
typedef
_GdkDrawable
GdkDrawable
;
26
27
typedef
_GdkDrawable
GdkPixmap
;
28
29
typedef
_GdkDrawable
GdkWindow
;
30
31
struct
_GdkVisual;
32
typedef
_GdkVisual
GdkVisual
;
33
34
35
36
// ****************************************************************************
37
// CGTKGLContext
38
// ****************************************************************************
39
40
class
CGTKGLContext
41
{
42
public
:
43
CGTKGLContext
(
CGTKGLContext
*shared_context = NULL);
44
~CGTKGLContext
();
45
46
bool
IsInitialized
();
47
48
void
MakeCurrent
(
GdkDrawable
*drawable);
49
void
SwapBuffers
(
GdkDrawable
*drawable);
50
void
DoneCurrent
();
51
52
GdkVisual
*
GetVisual
() {
return
visual
; }
53
54
private
:
55
bool
initialized
;
56
Display *
xdisplay
;
57
GLXContext
glxcontext
;
58
GdkVisual
*
visual
;
59
};
60
61
62
63
#endif
/* _GTK_GL_CONTEXT_H_ */
GdkWindow
_GdkDrawable GdkWindow
Definition:
GTKGLContext.h:29
GdkPixmap
_GdkDrawable GdkPixmap
Definition:
GTKGLContext.h:27
CGTKGLContext::visual
GdkVisual * visual
Definition:
GTKGLContext.h:58
CGTKGLContext::SwapBuffers
void SwapBuffers(GdkDrawable *drawable)
Definition:
GTKGLContext.cpp:82
CGTKGLContext::CGTKGLContext
CGTKGLContext(CGTKGLContext *shared_context=NULL)
Definition:
GTKGLContext.cpp:14
CGTKGLContext::glxcontext
GLXContext glxcontext
Definition:
GTKGLContext.h:57
GdkVisual
_GdkVisual GdkVisual
Definition:
GTKGLContext.h:31
CGTKGLContext::~CGTKGLContext
~CGTKGLContext()
Definition:
GTKGLContext.cpp:52
CGTKGLContext::DoneCurrent
void DoneCurrent()
Definition:
GTKGLContext.cpp:90
GdkDrawable
_GdkDrawable GdkDrawable
Definition:
GTKGLContext.h:24
CGTKGLContext::GetVisual
GdkVisual * GetVisual()
Definition:
GTKGLContext.h:52
CGTKGLContext::IsInitialized
bool IsInitialized()
Definition:
GTKGLContext.cpp:63
CGTKGLContext::initialized
bool initialized
Definition:
GTKGLContext.h:55
CGTKGLContext::xdisplay
Display * xdisplay
Definition:
GTKGLContext.h:56
CGTKGLContext
Definition:
GTKGLContext.h:40
CGTKGLContext::MakeCurrent
void MakeCurrent(GdkDrawable *drawable)
Definition:
GTKGLContext.cpp:68
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Feb 28 2022 21:44:00