1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>OpenGL Window</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
2
.synopsis, .classsynopsis {
4
border: solid 1px #aaaaaa;
9
border: solid 1px #aaaaff;
18
border: solid 1px #ffaaaa;
25
.navigation a:visited {
31
</style><link rel="home" href="index.html" title="GtkGLExt Reference Manual"><link rel="up" href="GdkGLExt-API.html" title="Part�II.�GdkGLExt API Reference"><link rel="previous" href="gtkglext-gdkglpixmap.html" title="OpenGL Pixmap"><link rel="next" href="gtkglext-gdkglfont.html" title="Font Rendering"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="gtkglext-gdkglpixmap.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="GdkGLExt-API.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GtkGLExt Reference Manual</th><td><a accesskey="n" href="gtkglext-gdkglfont.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="gtkglext-gdkglwindow"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">OpenGL Window</span></h2><p>OpenGL Window — OpenGL window which is located on-screen</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="GdkGLWindow"></a><pre class="synopsis">
3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<title>OpenGL Window</title>
5
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
6
<link rel="home" href="index.html" title="GtkGLExt Reference Manual">
7
<link rel="up" href="GdkGLExt-API.html" title="Part II. GdkGLExt API Reference">
8
<link rel="previous" href="gtkglext-gdkglpixmap.html" title="OpenGL Pixmap">
9
<link rel="next" href="gtkglext-gdkglfont.html" title="Font Rendering">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<link rel="stylesheet" href="style.css" type="text/css">
12
<link rel="part" href="Overview.html" title="Part I. GtkGLExt Overview">
13
<link rel="part" href="GdkGLExt-API.html" title="Part II. GdkGLExt API Reference">
14
<link rel="part" href="GtkGLExt-API.html" title="Part III. GtkGLExt API Reference">
16
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
18
<td><a accesskey="p" href="gtkglext-gdkglpixmap.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
<td><a accesskey="u" href="GdkGLExt-API.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
<th width="100%" align="center">GtkGLExt Reference Manual</th>
22
<td><a accesskey="n" href="gtkglext-gdkglfont.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24
<div class="refentry" lang="en">
25
<a name="gtkglext-gdkglwindow"></a><div class="titlepage">
29
<div class="refnamediv"><table width="100%"><tr>
31
<h2><span class="refentrytitle">OpenGL Window</span></h2>
32
<p>OpenGL Window — OpenGL window which is located on-screen</p>
34
<td valign="top" align="right"></td>
36
<div class="refsynopsisdiv">
38
<a name="GdkGLWindow"></a><pre class="synopsis">
33
40
#include <gdk/gdkgl.h>
36
struct <a href="gtkglext-gdkglwindow.html#GdkGLWindow-struct">GdkGLWindow</a>;
43
<a href="gtkglext-gdkglwindow.html#GdkGLWindow-struct">GdkGLWindow</a>;
37
44
<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-gl-window-new">gdk_gl_window_new</a> (<a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a> *glconfig,
46
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
47
>GdkWindow</a> *window,
39
48
const int *attrib_list);
40
49
void <a href="gtkglext-gdkglwindow.html#gdk-gl-window-destroy">gdk_gl_window_destroy</a> (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);
41
GdkWindow* <a href="gtkglext-gdkglwindow.html#gdk-gl-window-get-window">gdk_gl_window_get_window</a> (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);
42
<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-window-set-gl-capability">gdk_window_set_gl_capability</a> (GdkWindow *window,
51
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
52
>GdkWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-gl-window-get-window">gdk_gl_window_get_window</a> (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);
53
<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-window-set-gl-capability">gdk_window_set_gl_capability</a> (<a
54
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
55
>GdkWindow</a> *window,
43
56
<a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a> *glconfig,
44
57
const int *attrib_list);
45
void <a href="gtkglext-gdkglwindow.html#gdk-window-unset-gl-capability">gdk_window_unset_gl_capability</a> (GdkWindow *window);
46
gboolean <a href="gtkglext-gdkglwindow.html#gdk-window-is-gl-capable">gdk_window_is_gl_capable</a> (GdkWindow *window);
47
<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-window-get-gl-window">gdk_window_get_gl_window</a> (GdkWindow *window);
58
void <a href="gtkglext-gdkglwindow.html#gdk-window-unset-gl-capability">gdk_window_unset_gl_capability</a> (<a
59
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
60
>GdkWindow</a> *window);
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63
>gboolean</a> <a href="gtkglext-gdkglwindow.html#gdk-window-is-gl-capable">gdk_window_is_gl_capable</a> (<a
64
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
65
>GdkWindow</a> *window);
66
<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* <a href="gtkglext-gdkglwindow.html#gdk-window-get-gl-window">gdk_window_get_gl_window</a> (<a
67
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
68
>GdkWindow</a> *window);
48
69
#define <a href="gtkglext-gdkglwindow.html#gdk-window-get-gl-drawable">gdk_window_get_gl_drawable</a> (window)
51
</pre></div><div class="refsect1" lang="en"><h2>Object Hierarchy</h2><pre class="synopsis">
74
<div class="refsect1" lang="en">
75
<a name="id2512864"></a><h2>Object Hierarchy</h2>
76
<pre class="synopsis">
79
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
82
href="/usr/share/gtk-doc/html/gdk/gdk-Drawing-Primitives.html#GdkDrawable"
56
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
58
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="GdkGLWindow-struct"></a>struct GdkGLWindow</h3><pre class="programlisting">struct GdkGLWindow;</pre><p>
60
</p></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-gl-window-new"></a>gdk_gl_window_new ()</h3><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_gl_window_new (<a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a> *glconfig,
62
const int *attrib_list);</pre><p>
87
<div class="refsect1" lang="en">
88
<a name="id2512891"></a><h2>Description</h2>
93
<div class="refsect1" lang="en">
94
<a name="id2512901"></a><h2>Details</h2>
95
<div class="refsect2" lang="en">
96
<a name="id2512906"></a><h3>
97
<a name="GdkGLWindow-struct"></a>GdkGLWindow</h3>
98
<a class="indexterm" name="id2512917"></a><pre class="programlisting">typedef struct _GdkGLWindow GdkGLWindow;</pre>
104
<div class="refsect2" lang="en">
105
<a name="id2512932"></a><h3>
106
<a name="gdk-gl-window-new"></a>gdk_gl_window_new ()</h3>
107
<a class="indexterm" name="id2512944"></a><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_gl_window_new (<a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a> *glconfig,
109
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
110
>GdkWindow</a> *window,
111
const int *attrib_list);</pre>
63
113
Creates an on-screen rendering area.
64
114
attrib_list is currently unused. This must be set to NULL or empty
65
(first attribute of None). See GLX 1.3 spec.</p><p>
115
(first attribute of None). See GLX 1.3 spec.</p>
67
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>glconfig</tt></i>�:</span></td><td> a <a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a>.
68
</td></tr><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td> the GdkWindow to be used as the rendering area.
69
</td></tr><tr><td><span class="term"><i class="parameter"><tt>attrib_list</tt></i>�:</span></td><td> this must be set to NULL or empty (first attribute of None).
70
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the new <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>.
71
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-gl-window-destroy"></a>gdk_gl_window_destroy ()</h3><pre class="programlisting">void gdk_gl_window_destroy (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);</pre><p>
119
<div class="variablelist"><table border="0">
120
<col align="left" valign="top">
124
<span class="term"><i class="parameter"><tt>glconfig</tt></i> :</span></td>
125
<td> a <a href="gtkglext-gdkglconfig.html#GdkGLConfig"><span class="type">GdkGLConfig</span></a>.
130
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
132
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
133
><span class="type">GdkWindow</span></a> to be used as the rendering area.
138
<span class="term"><i class="parameter"><tt>attrib_list</tt></i> :</span></td>
139
<td> this must be set to NULL or empty (first attribute of None).
144
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
145
<td> the new <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a>.
152
<div class="refsect2" lang="en">
153
<a name="id2513073"></a><h3>
154
<a name="gdk-gl-window-destroy"></a>gdk_gl_window_destroy ()</h3>
155
<a class="indexterm" name="id2513084"></a><pre class="programlisting">void gdk_gl_window_destroy (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);</pre>
72
157
Destroys the OpenGL resources associated with <i class="parameter"><tt>glwindow</tt></i> and
73
decrements <i class="parameter"><tt>glwindow</tt></i>'s reference count.</p><p>
75
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>glwindow</tt></i>�:</span></td><td> a <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>.
76
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-gl-window-get-window"></a>gdk_gl_window_get_window ()</h3><pre class="programlisting">GdkWindow* gdk_gl_window_get_window (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);</pre><p>
77
Returns the GdkWindow associated with <i class="parameter"><tt>glwindow</tt></i>.
79
Notice that <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> is not GdkWindow, but another
80
GdkDrawable which have an associated GdkWindow.</p><p>
82
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>glwindow</tt></i>�:</span></td><td> a <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>.
83
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the GdkWindow associated with <i class="parameter"><tt>glwindow</tt></i>.
84
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-window-set-gl-capability"></a>gdk_window_set_gl_capability ()</h3><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_window_set_gl_capability (GdkWindow *window,
158
decrements <i class="parameter"><tt>glwindow</tt></i>'s reference count.</p>
162
<div class="variablelist"><table border="0">
163
<col align="left" valign="top">
166
<span class="term"><i class="parameter"><tt>glwindow</tt></i> :</span></td>
167
<td> a <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a>.
173
<div class="refsect2" lang="en">
174
<a name="id2513154"></a><h3>
175
<a name="gdk-gl-window-get-window"></a>gdk_gl_window_get_window ()</h3>
176
<a class="indexterm" name="id2513165"></a><pre class="programlisting"><a
177
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
178
>GdkWindow</a>* gdk_gl_window_get_window (<a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> *glwindow);</pre>
181
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
182
><span class="type">GdkWindow</span></a> associated with <i class="parameter"><tt>glwindow</tt></i>.
185
Notice that <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a> is not <a
186
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
187
><span class="type">GdkWindow</span></a>, but another
189
href="/usr/share/gtk-doc/html/gdk/gdk-Drawing-Primitives.html#GdkDrawable"
190
><span class="type">GdkDrawable</span></a> which have an associated <a
191
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
192
><span class="type">GdkWindow</span></a>.</p>
196
<div class="variablelist"><table border="0">
197
<col align="left" valign="top">
201
<span class="term"><i class="parameter"><tt>glwindow</tt></i> :</span></td>
202
<td> a <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a>.
207
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
209
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
210
><span class="type">GdkWindow</span></a> associated with <i class="parameter"><tt>glwindow</tt></i>.
217
<div class="refsect2" lang="en">
218
<a name="id2513296"></a><h3>
219
<a name="gdk-window-set-gl-capability"></a>gdk_window_set_gl_capability ()</h3>
220
<a class="indexterm" name="id2513307"></a><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_window_set_gl_capability (<a
221
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
222
>GdkWindow</a> *window,
85
223
<a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a> *glconfig,
86
const int *attrib_list);</pre><p>
224
const int *attrib_list);</pre>
87
226
Set the OpenGL-capability to the <i class="parameter"><tt>window</tt></i>.
88
This function creates a new <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> held by the <i class="parameter"><tt>window</tt></i>.
227
This function creates a new <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a> held by the <i class="parameter"><tt>window</tt></i>.
89
228
attrib_list is currently unused. This must be set to NULL or empty
90
(first attribute of None).</p><p>
229
(first attribute of None).</p>
92
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td> the GdkWindow to be used as the rendering area.
93
</td></tr><tr><td><span class="term"><i class="parameter"><tt>glconfig</tt></i>�:</span></td><td> a <a href="gtkglext-gdkglconfig.html#GdkGLConfig">GdkGLConfig</a>.
94
</td></tr><tr><td><span class="term"><i class="parameter"><tt>attrib_list</tt></i>�:</span></td><td> this must be set to NULL or empty (first attribute of None).
95
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> used by the <i class="parameter"><tt>window</tt></i> if it is successful,
233
<div class="variablelist"><table border="0">
234
<col align="left" valign="top">
238
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
240
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
241
><span class="type">GdkWindow</span></a> to be used as the rendering area.
246
<span class="term"><i class="parameter"><tt>glconfig</tt></i> :</span></td>
247
<td> a <a href="gtkglext-gdkglconfig.html#GdkGLConfig"><span class="type">GdkGLConfig</span></a>.
252
<span class="term"><i class="parameter"><tt>attrib_list</tt></i> :</span></td>
253
<td> this must be set to NULL or empty (first attribute of None).
258
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
259
<td> the <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a> used by the <i class="parameter"><tt>window</tt></i> if it is successful,
97
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-window-unset-gl-capability"></a>gdk_window_unset_gl_capability ()</h3><pre class="programlisting">void gdk_window_unset_gl_capability (GdkWindow *window);</pre><p>
267
<div class="refsect2" lang="en">
268
<a name="id2513464"></a><h3>
269
<a name="gdk-window-unset-gl-capability"></a>gdk_window_unset_gl_capability ()</h3>
270
<a class="indexterm" name="id2513476"></a><pre class="programlisting">void gdk_window_unset_gl_capability (<a
271
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
272
>GdkWindow</a> *window);</pre>
98
274
Unset the OpenGL-capability of the <i class="parameter"><tt>window</tt></i>.
99
This function destroys the <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> held by the <i class="parameter"><tt>window</tt></i>.</p><p>
101
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td> a GdkWindow.
102
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-window-is-gl-capable"></a>gdk_window_is_gl_capable ()</h3><pre class="programlisting">gboolean gdk_window_is_gl_capable (GdkWindow *window);</pre><p>
103
Returns whether the <i class="parameter"><tt>window</tt></i> is OpenGL-capable.</p><p>
105
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td> a GdkWindow.
106
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> TRUE if the <i class="parameter"><tt>window</tt></i> is OpenGL-capable, FALSE otherwise.
107
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-window-get-gl-window"></a>gdk_window_get_gl_window ()</h3><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_window_get_gl_window (GdkWindow *window);</pre><p>
108
Returns the <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a> held by the <i class="parameter"><tt>window</tt></i>.</p><p>
110
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td> a GdkWindow.
111
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>.
112
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gdk-window-get-gl-drawable"></a>gdk_window_get_gl_drawable()</h3><pre class="programlisting">#define gdk_window_get_gl_drawable(window)</pre><p>
113
Returns the <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable">GdkGLDrawable</a> held by the <i class="parameter"><tt>window</tt></i>. In fact, this is macro
114
that casts the result of <a href="gtkglext-gdkglwindow.html#gdk-window-get-gl-window">gdk_window_get_gl_window</a> to <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable">GdkGLDrawable</a>.
115
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>window</tt></i>�:</span></td><td>a <a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>.
116
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable">GdkGLDrawable</a>.
119
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="gtkglext-gdkglpixmap.html"><b><<�OpenGL Pixmap</b></a></td><td align="right"><a accesskey="n" href="gtkglext-gdkglfont.html"><b>Font Rendering�>></b></a></td></tr></table></body></html>
275
This function destroys the <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a> held by the <i class="parameter"><tt>window</tt></i>.</p>
279
<div class="variablelist"><table border="0">
280
<col align="left" valign="top">
283
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
285
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
286
><span class="type">GdkWindow</span></a>.
292
<div class="refsect2" lang="en">
293
<a name="id2513554"></a><h3>
294
<a name="gdk-window-is-gl-capable"></a>gdk_window_is_gl_capable ()</h3>
295
<a class="indexterm" name="id2513564"></a><pre class="programlisting"><a
296
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
297
>gboolean</a> gdk_window_is_gl_capable (<a
298
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
299
>GdkWindow</a> *window);</pre>
301
Returns whether the <i class="parameter"><tt>window</tt></i> is OpenGL-capable.</p>
305
<div class="variablelist"><table border="0">
306
<col align="left" valign="top">
310
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
312
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
313
><span class="type">GdkWindow</span></a>.
318
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
319
<td> TRUE if the <i class="parameter"><tt>window</tt></i> is OpenGL-capable, FALSE otherwise.
326
<div class="refsect2" lang="en">
327
<a name="id2513645"></a><h3>
328
<a name="gdk-window-get-gl-window"></a>gdk_window_get_gl_window ()</h3>
329
<a class="indexterm" name="id2513656"></a><pre class="programlisting"><a href="gtkglext-gdkglwindow.html#GdkGLWindow">GdkGLWindow</a>* gdk_window_get_gl_window (<a
330
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
331
>GdkWindow</a> *window);</pre>
333
Returns the <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a> held by the <i class="parameter"><tt>window</tt></i>.</p>
337
<div class="variablelist"><table border="0">
338
<col align="left" valign="top">
342
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
344
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow"
345
><span class="type">GdkWindow</span></a>.
350
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
351
<td> the <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a>.
358
<div class="refsect2" lang="en">
359
<a name="id2513745"></a><h3>
360
<a name="gdk-window-get-gl-drawable"></a>gdk_window_get_gl_drawable()</h3>
361
<a class="indexterm" name="id2513756"></a><pre class="programlisting">#define gdk_window_get_gl_drawable(window)</pre>
363
Returns the <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable"><span class="type">GdkGLDrawable</span></a> held by the <i class="parameter"><tt>window</tt></i>. In fact, this is macro
364
that casts the result of <a href="gtkglext-gdkglwindow.html#gdk-window-get-gl-window"><span class="type">gdk_window_get_gl_window</span></a> to <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable"><span class="type">GdkGLDrawable</span></a>.
366
<div class="variablelist"><table border="0">
367
<col align="left" valign="top">
371
<span class="term"><i class="parameter"><tt>window</tt></i> :</span></td>
372
<td>a <a href="gtkglext-gdkglwindow.html#GdkGLWindow"><span class="type">GdkGLWindow</span></a>.
377
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
378
<td>the <a href="gtkglext-gdkgldrawable.html#GdkGLDrawable"><span class="type">GdkGLDrawable</span></a>.
388
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
389
<td align="left"><a accesskey="p" href="gtkglext-gdkglpixmap.html"><b><< OpenGL Pixmap</b></a></td>
390
<td align="right"><a accesskey="n" href="gtkglext-gdkglfont.html"><b>Font Rendering >></b></a></td>