1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gtkglc.glgdk;
26 
27 version(Tango)
28 	private import tango.stdc.stdio;
29 else
30 	private import std.stdio;
31 
32 private import gtkglc.glgdktypes;
33 private import gtkc.Loader;
34 private import gtkc.paths;
35 
36 mixin( _shared ~ "static this()
37 {
38 	// glgdk.GLdInit
39 
40 	Linker.link(gdk_gl_init, \"gdk_gl_init\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
41 	Linker.link(gdk_gl_init_check, \"gdk_gl_init_check\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
42 
43 	// glgdk.GLQuery
44 
45 	Linker.link(gdk_gl_query_extension, \"gdk_gl_query_extension\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
46 	Linker.link(gdk_gl_query_extension_for_display, \"gdk_gl_query_extension_for_display\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
47 	Linker.link(gdk_gl_query_version, \"gdk_gl_query_version\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
48 	Linker.link(gdk_gl_query_version_for_display, \"gdk_gl_query_version_for_display\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
49 	Linker.link(gdk_gl_query_gl_extension, \"gdk_gl_query_gl_extension\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
50 	Linker.link(gdk_gl_get_proc_address, \"gdk_gl_get_proc_address\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
51 
52 	// glgdk.GLConfig
53 
54 	Linker.link(gdk_gl_config_new, \"gdk_gl_config_new\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
55 	Linker.link(gdk_gl_config_new_for_screen, \"gdk_gl_config_new_for_screen\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
56 	Linker.link(gdk_gl_config_new_by_mode, \"gdk_gl_config_new_by_mode\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
57 	Linker.link(gdk_gl_config_new_by_mode_for_screen, \"gdk_gl_config_new_by_mode_for_screen\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
58 	Linker.link(gdk_gl_config_get_screen, \"gdk_gl_config_get_screen\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
59 	Linker.link(gdk_gl_config_get_attrib, \"gdk_gl_config_get_attrib\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
60 	Linker.link(gdk_gl_config_get_visual, \"gdk_gl_config_get_visual\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
61 	Linker.link(gdk_gl_config_get_depth, \"gdk_gl_config_get_depth\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
62 	Linker.link(gdk_gl_config_get_layer_plane, \"gdk_gl_config_get_layer_plane\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
63 	Linker.link(gdk_gl_config_get_n_aux_buffers, \"gdk_gl_config_get_n_aux_buffers\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
64 	Linker.link(gdk_gl_config_get_n_sample_buffers, \"gdk_gl_config_get_n_sample_buffers\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
65 	Linker.link(gdk_gl_config_is_rgba, \"gdk_gl_config_is_rgba\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
66 	Linker.link(gdk_gl_config_is_double_buffered, \"gdk_gl_config_is_double_buffered\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
67 	Linker.link(gdk_gl_config_is_stereo, \"gdk_gl_config_is_stereo\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
68 	Linker.link(gdk_gl_config_has_alpha, \"gdk_gl_config_has_alpha\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
69 	Linker.link(gdk_gl_config_has_depth_buffer, \"gdk_gl_config_has_depth_buffer\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
70 	Linker.link(gdk_gl_config_has_stencil_buffer, \"gdk_gl_config_has_stencil_buffer\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
71 	Linker.link(gdk_gl_config_has_accum_buffer, \"gdk_gl_config_has_accum_buffer\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
72 
73 	// glgdk.GLContext
74 
75 	Linker.link(gdk_gl_context_make_current, \"gdk_gl_context_make_current\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
76 	Linker.link(gdk_gl_context_release_current, \"gdk_gl_context_release_current\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
77 	Linker.link(gdk_gl_context_new, \"gdk_gl_context_new\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
78 	Linker.link(gdk_gl_context_copy, \"gdk_gl_context_copy\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
79 	Linker.link(gdk_gl_context_get_gl_drawable, \"gdk_gl_context_get_gl_drawable\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
80 	Linker.link(gdk_gl_context_get_gl_config, \"gdk_gl_context_get_gl_config\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
81 	Linker.link(gdk_gl_context_get_share_list, \"gdk_gl_context_get_share_list\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
82 	Linker.link(gdk_gl_context_is_direct, \"gdk_gl_context_is_direct\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
83 	Linker.link(gdk_gl_context_get_render_type, \"gdk_gl_context_get_render_type\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
84 	Linker.link(gdk_gl_context_get_current, \"gdk_gl_context_get_current\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
85 
86 	// glgdk.GLDrawableT
87 
88 
89 	// glgdk.GLDrawableT
90 
91 	Linker.link(gdk_gl_drawable_is_double_buffered, \"gdk_gl_drawable_is_double_buffered\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
92 	Linker.link(gdk_gl_drawable_swap_buffers, \"gdk_gl_drawable_swap_buffers\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
93 	Linker.link(gdk_gl_drawable_wait_gl, \"gdk_gl_drawable_wait_gl\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
94 	Linker.link(gdk_gl_drawable_wait_gdk, \"gdk_gl_drawable_wait_gdk\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
95 	Linker.link(gdk_gl_drawable_get_gl_config, \"gdk_gl_drawable_get_gl_config\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
96 
97 	// glgdk.GLDrawable
98 
99 
100 	// glgdk.GLWindow
101 
102 	Linker.link(gdk_gl_window_new, \"gdk_gl_window_new\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
103 	Linker.link(gdk_gl_window_get_window, \"gdk_gl_window_get_window\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
104 	Linker.link(gdk_window_set_gl_capability, \"gdk_window_set_gl_capability\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
105 	Linker.link(gdk_window_unset_gl_capability, \"gdk_window_unset_gl_capability\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
106 	Linker.link(gdk_window_is_gl_capable, \"gdk_window_is_gl_capable\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
107 	Linker.link(gdk_window_get_gl_window, \"gdk_window_get_gl_window\", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF);
108 }");
109 
110 mixin( gshared ~"extern(C)
111 {
112 	// glgdk.GLdInit
113 
114 	void function(int* argc, char*** argv) c_gdk_gl_init;
115 	gboolean function(int* argc, char*** argv) c_gdk_gl_init_check;
116 
117 	// glgdk.GLQuery
118 
119 	gboolean function() c_gdk_gl_query_extension;
120 	gboolean function(GdkDisplay* display) c_gdk_gl_query_extension_for_display;
121 	gboolean function(int* major, int* minor) c_gdk_gl_query_version;
122 	gboolean function(GdkDisplay* display, int* major, int* minor) c_gdk_gl_query_version_for_display;
123 	gboolean function(char* extension) c_gdk_gl_query_gl_extension;
124 	GdkGLProc function(char* procName) c_gdk_gl_get_proc_address;
125 
126 	// glgdk.GLConfig
127 
128 	GdkGLConfig* function(int* attribList, gsize nAttribs) c_gdk_gl_config_new;
129 	GdkGLConfig* function(GdkScreen* screen, int* attribList, gsize nAttribs) c_gdk_gl_config_new_for_screen;
130 	GdkGLConfig* function(GdkGLConfigMode mode) c_gdk_gl_config_new_by_mode;
131 	GdkGLConfig* function(GdkScreen* screen, GdkGLConfigMode mode) c_gdk_gl_config_new_by_mode_for_screen;
132 	GdkScreen* function(GdkGLConfig* glconfig) c_gdk_gl_config_get_screen;
133 	gboolean function(GdkGLConfig* glconfig, int attribute, int* value) c_gdk_gl_config_get_attrib;
134 	GdkVisual* function(GdkGLConfig* glconfig) c_gdk_gl_config_get_visual;
135 	gint function(GdkGLConfig* glconfig) c_gdk_gl_config_get_depth;
136 	gint function(GdkGLConfig* glconfig) c_gdk_gl_config_get_layer_plane;
137 	gint function(GdkGLConfig* glconfig) c_gdk_gl_config_get_n_aux_buffers;
138 	gint function(GdkGLConfig* glconfig) c_gdk_gl_config_get_n_sample_buffers;
139 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_is_rgba;
140 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_is_double_buffered;
141 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_is_stereo;
142 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_has_alpha;
143 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_has_depth_buffer;
144 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_has_stencil_buffer;
145 	gboolean function(GdkGLConfig* glconfig) c_gdk_gl_config_has_accum_buffer;
146 
147 	// glgdk.GLContext
148 
149 	gboolean function(GdkGLContext* glcontext, GdkGLDrawable* draw, GdkGLDrawable* read) c_gdk_gl_context_make_current;
150 	void function() c_gdk_gl_context_release_current;
151 	GdkGLContext* function(GdkGLDrawable* gldrawable, GdkGLContext* shareList, gboolean direct, int renderType) c_gdk_gl_context_new;
152 	gboolean function(GdkGLContext* glcontext, GdkGLContext* src, ulong mask) c_gdk_gl_context_copy;
153 	GdkGLDrawable* function(GdkGLContext* glcontext) c_gdk_gl_context_get_gl_drawable;
154 	GdkGLConfig* function(GdkGLContext* glcontext) c_gdk_gl_context_get_gl_config;
155 	GdkGLContext* function(GdkGLContext* glcontext) c_gdk_gl_context_get_share_list;
156 	gboolean function(GdkGLContext* glcontext) c_gdk_gl_context_is_direct;
157 	int function(GdkGLContext* glcontext) c_gdk_gl_context_get_render_type;
158 	GdkGLContext* function() c_gdk_gl_context_get_current;
159 
160 	// glgdk.GLDrawableT
161 
162 
163 	// glgdk.GLDrawableT
164 
165 	gboolean function(GdkGLDrawable* gldrawable) c_gdk_gl_drawable_is_double_buffered;
166 	void function(GdkGLDrawable* gldrawable) c_gdk_gl_drawable_swap_buffers;
167 	void function(GdkGLDrawable* gldrawable) c_gdk_gl_drawable_wait_gl;
168 	void function(GdkGLDrawable* gldrawable) c_gdk_gl_drawable_wait_gdk;
169 	GdkGLConfig* function(GdkGLDrawable* gldrawable) c_gdk_gl_drawable_get_gl_config;
170 
171 	// glgdk.GLDrawable
172 
173 
174 	// glgdk.GLWindow
175 
176 	GdkGLWindow* function(GdkGLConfig* glconfig, GdkWindow* window, int* attribList) c_gdk_gl_window_new;
177 	GdkWindow* function(GdkGLWindow* glwindow) c_gdk_gl_window_get_window;
178 	GdkGLWindow* function(GdkWindow* window, GdkGLConfig* glconfig, int* attribList) c_gdk_window_set_gl_capability;
179 	void function(GdkWindow* window) c_gdk_window_unset_gl_capability;
180 	gboolean function(GdkWindow* window) c_gdk_window_is_gl_capable;
181 	GdkGLWindow* function(GdkWindow* window) c_gdk_window_get_gl_window;
182 }");
183 
184 // glgdk.GLdInit
185 
186 alias c_gdk_gl_init  gdk_gl_init;
187 alias c_gdk_gl_init_check  gdk_gl_init_check;
188 
189 // glgdk.GLQuery
190 
191 alias c_gdk_gl_query_extension  gdk_gl_query_extension;
192 alias c_gdk_gl_query_extension_for_display  gdk_gl_query_extension_for_display;
193 alias c_gdk_gl_query_version  gdk_gl_query_version;
194 alias c_gdk_gl_query_version_for_display  gdk_gl_query_version_for_display;
195 alias c_gdk_gl_query_gl_extension  gdk_gl_query_gl_extension;
196 alias c_gdk_gl_get_proc_address  gdk_gl_get_proc_address;
197 
198 // glgdk.GLConfig
199 
200 alias c_gdk_gl_config_new  gdk_gl_config_new;
201 alias c_gdk_gl_config_new_for_screen  gdk_gl_config_new_for_screen;
202 alias c_gdk_gl_config_new_by_mode  gdk_gl_config_new_by_mode;
203 alias c_gdk_gl_config_new_by_mode_for_screen  gdk_gl_config_new_by_mode_for_screen;
204 alias c_gdk_gl_config_get_screen  gdk_gl_config_get_screen;
205 alias c_gdk_gl_config_get_attrib  gdk_gl_config_get_attrib;
206 alias c_gdk_gl_config_get_visual  gdk_gl_config_get_visual;
207 alias c_gdk_gl_config_get_depth  gdk_gl_config_get_depth;
208 alias c_gdk_gl_config_get_layer_plane  gdk_gl_config_get_layer_plane;
209 alias c_gdk_gl_config_get_n_aux_buffers  gdk_gl_config_get_n_aux_buffers;
210 alias c_gdk_gl_config_get_n_sample_buffers  gdk_gl_config_get_n_sample_buffers;
211 alias c_gdk_gl_config_is_rgba  gdk_gl_config_is_rgba;
212 alias c_gdk_gl_config_is_double_buffered  gdk_gl_config_is_double_buffered;
213 alias c_gdk_gl_config_is_stereo  gdk_gl_config_is_stereo;
214 alias c_gdk_gl_config_has_alpha  gdk_gl_config_has_alpha;
215 alias c_gdk_gl_config_has_depth_buffer  gdk_gl_config_has_depth_buffer;
216 alias c_gdk_gl_config_has_stencil_buffer  gdk_gl_config_has_stencil_buffer;
217 alias c_gdk_gl_config_has_accum_buffer  gdk_gl_config_has_accum_buffer;
218 
219 // glgdk.GLContext
220 
221 alias c_gdk_gl_context_make_current  gdk_gl_context_make_current;
222 alias c_gdk_gl_context_release_current  gdk_gl_context_release_current;
223 alias c_gdk_gl_context_new  gdk_gl_context_new;
224 alias c_gdk_gl_context_copy  gdk_gl_context_copy;
225 alias c_gdk_gl_context_get_gl_drawable  gdk_gl_context_get_gl_drawable;
226 alias c_gdk_gl_context_get_gl_config  gdk_gl_context_get_gl_config;
227 alias c_gdk_gl_context_get_share_list  gdk_gl_context_get_share_list;
228 alias c_gdk_gl_context_is_direct  gdk_gl_context_is_direct;
229 alias c_gdk_gl_context_get_render_type  gdk_gl_context_get_render_type;
230 alias c_gdk_gl_context_get_current  gdk_gl_context_get_current;
231 
232 // glgdk.GLDrawableT
233 
234 
235 // glgdk.GLDrawableT
236 
237 alias c_gdk_gl_drawable_is_double_buffered  gdk_gl_drawable_is_double_buffered;
238 alias c_gdk_gl_drawable_swap_buffers  gdk_gl_drawable_swap_buffers;
239 alias c_gdk_gl_drawable_wait_gl  gdk_gl_drawable_wait_gl;
240 alias c_gdk_gl_drawable_wait_gdk  gdk_gl_drawable_wait_gdk;
241 alias c_gdk_gl_drawable_get_gl_config  gdk_gl_drawable_get_gl_config;
242 
243 // glgdk.GLDrawable
244 
245 
246 // glgdk.GLWindow
247 
248 alias c_gdk_gl_window_new  gdk_gl_window_new;
249 alias c_gdk_gl_window_get_window  gdk_gl_window_get_window;
250 alias c_gdk_window_set_gl_capability  gdk_window_set_gl_capability;
251 alias c_gdk_window_unset_gl_capability  gdk_window_unset_gl_capability;
252 alias c_gdk_window_is_gl_capable  gdk_window_is_gl_capable;
253 alias c_gdk_window_get_gl_window  gdk_window_get_gl_window;