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 import std.stdio; 28 import gtkglc.glgdktypes; 29 import gtkd.Loader; 30 import gtkd.paths; 31 32 shared static this() 33 { 34 // glgdk.GLConfig 35 36 Linker.link(gdk_gl_config_get_type, "gdk_gl_config_get_type", LIBRARY.GLGDK); 37 Linker.link(gdk_gl_config_new, "gdk_gl_config_new", LIBRARY.GLGDK); 38 Linker.link(gdk_gl_config_new_by_mode, "gdk_gl_config_new_by_mode", LIBRARY.GLGDK); 39 Linker.link(gdk_gl_config_new_by_mode_for_screen, "gdk_gl_config_new_by_mode_for_screen", LIBRARY.GLGDK); 40 Linker.link(gdk_gl_config_new_for_display, "gdk_gl_config_new_for_display", LIBRARY.GLGDK); 41 Linker.link(gdk_gl_config_new_for_screen, "gdk_gl_config_new_for_screen", LIBRARY.GLGDK); 42 Linker.link(gdk_gl_config_get_attrib, "gdk_gl_config_get_attrib", LIBRARY.GLGDK); 43 Linker.link(gdk_gl_config_get_depth, "gdk_gl_config_get_depth", LIBRARY.GLGDK); 44 Linker.link(gdk_gl_config_get_layer_plane, "gdk_gl_config_get_layer_plane", LIBRARY.GLGDK); 45 Linker.link(gdk_gl_config_get_n_aux_buffers, "gdk_gl_config_get_n_aux_buffers", LIBRARY.GLGDK); 46 Linker.link(gdk_gl_config_get_n_sample_buffers, "gdk_gl_config_get_n_sample_buffers", LIBRARY.GLGDK); 47 Linker.link(gdk_gl_config_get_screen, "gdk_gl_config_get_screen", LIBRARY.GLGDK); 48 Linker.link(gdk_gl_config_get_visual, "gdk_gl_config_get_visual", LIBRARY.GLGDK); 49 Linker.link(gdk_gl_config_has_accum_buffer, "gdk_gl_config_has_accum_buffer", LIBRARY.GLGDK); 50 Linker.link(gdk_gl_config_has_alpha, "gdk_gl_config_has_alpha", LIBRARY.GLGDK); 51 Linker.link(gdk_gl_config_has_depth_buffer, "gdk_gl_config_has_depth_buffer", LIBRARY.GLGDK); 52 Linker.link(gdk_gl_config_has_stencil_buffer, "gdk_gl_config_has_stencil_buffer", LIBRARY.GLGDK); 53 Linker.link(gdk_gl_config_is_double_buffered, "gdk_gl_config_is_double_buffered", LIBRARY.GLGDK); 54 Linker.link(gdk_gl_config_is_rgba, "gdk_gl_config_is_rgba", LIBRARY.GLGDK); 55 Linker.link(gdk_gl_config_is_stereo, "gdk_gl_config_is_stereo", LIBRARY.GLGDK); 56 57 // glgdk.GLContext 58 59 Linker.link(gdk_gl_context_get_type, "gdk_gl_context_get_type", LIBRARY.GLGDK); 60 Linker.link(gdk_gl_context_new, "gdk_gl_context_new", LIBRARY.GLGDK); 61 Linker.link(gdk_gl_context_get_current, "gdk_gl_context_get_current", LIBRARY.GLGDK); 62 Linker.link(gdk_gl_context_release_current, "gdk_gl_context_release_current", LIBRARY.GLGDK); 63 Linker.link(gdk_gl_context_copy, "gdk_gl_context_copy", LIBRARY.GLGDK); 64 Linker.link(gdk_gl_context_get_gl_config, "gdk_gl_context_get_gl_config", LIBRARY.GLGDK); 65 Linker.link(gdk_gl_context_get_gl_drawable, "gdk_gl_context_get_gl_drawable", LIBRARY.GLGDK); 66 Linker.link(gdk_gl_context_get_render_type, "gdk_gl_context_get_render_type", LIBRARY.GLGDK); 67 Linker.link(gdk_gl_context_get_share_list, "gdk_gl_context_get_share_list", LIBRARY.GLGDK); 68 Linker.link(gdk_gl_context_is_direct, "gdk_gl_context_is_direct", LIBRARY.GLGDK); 69 Linker.link(gdk_gl_context_make_current, "gdk_gl_context_make_current", LIBRARY.GLGDK); 70 71 // glgdk.GLDrawable 72 73 Linker.link(gdk_gl_drawable_get_type, "gdk_gl_drawable_get_type", LIBRARY.GLGDK); 74 Linker.link(gdk_gl_drawable_get_gl_config, "gdk_gl_drawable_get_gl_config", LIBRARY.GLGDK); 75 Linker.link(gdk_gl_drawable_is_double_buffered, "gdk_gl_drawable_is_double_buffered", LIBRARY.GLGDK); 76 Linker.link(gdk_gl_drawable_swap_buffers, "gdk_gl_drawable_swap_buffers", LIBRARY.GLGDK); 77 Linker.link(gdk_gl_drawable_wait_gdk, "gdk_gl_drawable_wait_gdk", LIBRARY.GLGDK); 78 Linker.link(gdk_gl_drawable_wait_gl, "gdk_gl_drawable_wait_gl", LIBRARY.GLGDK); 79 80 // glgdk.GLWindow 81 82 Linker.link(gdk_gl_window_get_type, "gdk_gl_window_get_type", LIBRARY.GLGDK); 83 Linker.link(gdk_gl_window_new, "gdk_gl_window_new", LIBRARY.GLGDK); 84 Linker.link(gdk_window_get_gl_window, "gdk_window_get_gl_window", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF); 85 Linker.link(gdk_window_is_gl_capable, "gdk_window_is_gl_capable", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF); 86 Linker.link(gdk_window_set_gl_capability, "gdk_window_set_gl_capability", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF); 87 Linker.link(gdk_window_unset_gl_capability, "gdk_window_unset_gl_capability", LIBRARY.GLGDK, LIBRARY.GDKPIXBUF); 88 Linker.link(gdk_gl_window_get_window, "gdk_gl_window_get_window", LIBRARY.GLGDK); 89 90 // glgdk.GLdInit 91 92 Linker.link(gdk_gl_init, "gdk_gl_init", LIBRARY.GLGDK); 93 Linker.link(gdk_gl_init_check, "gdk_gl_init_check", LIBRARY.GLGDK); 94 95 // glgdk.GLQuery 96 97 Linker.link(gdk_gl_query_version, "gdk_gl_query_version", LIBRARY.GLGDK); 98 Linker.link(gdk_gl_query_version_for_display, "gdk_gl_query_version_for_display", LIBRARY.GLGDK); 99 Linker.link(gdk_gl_get_proc_address, "gdk_gl_get_proc_address", LIBRARY.GLGDK); 100 Linker.link(gdk_gl_query_extension, "gdk_gl_query_extension", LIBRARY.GLGDK); 101 Linker.link(gdk_gl_query_extension_for_display, "gdk_gl_query_extension_for_display", LIBRARY.GLGDK); 102 Linker.link(gdk_gl_query_gl_extension, "gdk_gl_query_gl_extension", LIBRARY.GLGDK); 103 104 // glgdk.GLVersion 105 106 Linker.link(gdk_gl_get_binary_age, "gdk_gl_get_binary_age", LIBRARY.GLGDK); 107 Linker.link(gdk_gl_get_interface_age, "gdk_gl_get_interface_age", LIBRARY.GLGDK); 108 Linker.link(gdk_gl_get_major_version, "gdk_gl_get_major_version", LIBRARY.GLGDK); 109 Linker.link(gdk_gl_get_micro_version, "gdk_gl_get_micro_version", LIBRARY.GLGDK); 110 Linker.link(gdk_gl_get_minor_version, "gdk_gl_get_minor_version", LIBRARY.GLGDK); 111 } 112 113 __gshared extern(C) 114 { 115 116 // glgdk.GLConfig 117 118 GType function() glc_gdk_gl_config_get_type; 119 GdkGLConfig* function(int* attribList, size_t nAttribs) glc_gdk_gl_config_new; 120 GdkGLConfig* function(GdkGLConfigMode mode) glc_gdk_gl_config_new_by_mode; 121 GdkGLConfig* function(GdkScreen* screen, GdkGLConfigMode mode) glc_gdk_gl_config_new_by_mode_for_screen; 122 GdkGLConfig* function(GdkDisplay* display, int* attribList, size_t nAttribs) glc_gdk_gl_config_new_for_display; 123 GdkGLConfig* function(GdkScreen* screen, int* attribList, size_t nAttribs) glc_gdk_gl_config_new_for_screen; 124 int function(GdkGLConfig* glconfig, int attribute, int* value) glc_gdk_gl_config_get_attrib; 125 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_depth; 126 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_layer_plane; 127 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_n_aux_buffers; 128 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_n_sample_buffers; 129 GdkScreen* function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_screen; 130 GdkVisual* function(GdkGLConfig* glconfig) glc_gdk_gl_config_get_visual; 131 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_has_accum_buffer; 132 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_has_alpha; 133 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_has_depth_buffer; 134 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_has_stencil_buffer; 135 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_is_double_buffered; 136 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_is_rgba; 137 int function(GdkGLConfig* glconfig) glc_gdk_gl_config_is_stereo; 138 139 // glgdk.GLContext 140 141 GType function() glc_gdk_gl_context_get_type; 142 GdkGLContext* function(GdkGLDrawable* gldrawable, GdkGLContext* shareList, int direct, int renderType) glc_gdk_gl_context_new; 143 GdkGLContext* function() glc_gdk_gl_context_get_current; 144 void function() glc_gdk_gl_context_release_current; 145 int function(GdkGLContext* glcontext, GdkGLContext* src, ulong mask) glc_gdk_gl_context_copy; 146 GdkGLConfig* function(GdkGLContext* glcontext) glc_gdk_gl_context_get_gl_config; 147 GdkGLDrawable* function(GdkGLContext* glcontext) glc_gdk_gl_context_get_gl_drawable; 148 int function(GdkGLContext* glcontext) glc_gdk_gl_context_get_render_type; 149 GdkGLContext* function(GdkGLContext* glcontext) glc_gdk_gl_context_get_share_list; 150 int function(GdkGLContext* glcontext) glc_gdk_gl_context_is_direct; 151 int function(GdkGLContext* glcontext, GdkGLDrawable* draw, GdkGLDrawable* read) glc_gdk_gl_context_make_current; 152 153 // glgdk.GLDrawable 154 155 GType function() glc_gdk_gl_drawable_get_type; 156 GdkGLConfig* function(GdkGLDrawable* gldrawable) glc_gdk_gl_drawable_get_gl_config; 157 int function(GdkGLDrawable* gldrawable) glc_gdk_gl_drawable_is_double_buffered; 158 void function(GdkGLDrawable* gldrawable) glc_gdk_gl_drawable_swap_buffers; 159 void function(GdkGLDrawable* gldrawable) glc_gdk_gl_drawable_wait_gdk; 160 void function(GdkGLDrawable* gldrawable) glc_gdk_gl_drawable_wait_gl; 161 162 // glgdk.GLWindow 163 164 GType function() glc_gdk_gl_window_get_type; 165 GdkGLWindow* function(GdkGLConfig* glconfig, GdkWindow* window, int* attribList) glc_gdk_gl_window_new; 166 GdkGLWindow* function(GdkWindow* window) glc_gdk_window_get_gl_window; 167 int function(GdkWindow* window) glc_gdk_window_is_gl_capable; 168 GdkGLWindow* function(GdkWindow* window, GdkGLConfig* glconfig, int* attribList) glc_gdk_window_set_gl_capability; 169 void function(GdkWindow* window) glc_gdk_window_unset_gl_capability; 170 GdkWindow* function(GdkGLWindow* glwindow) glc_gdk_gl_window_get_window; 171 172 // glgdk.GLdInit 173 174 void function(int* argc, char*** argv) glc_gdk_gl_init; 175 int function(int* argc, char*** argv) glc_gdk_gl_init_check; 176 177 // glgdk.GLQuery 178 179 int function(int* major, int* minor) glc_gdk_gl_query_version; 180 int function(GdkDisplay* display, int* major, int* minor) glc_gdk_gl_query_version_for_display; 181 GdkGLProc function(const(char)* procName) glc_gdk_gl_get_proc_address; 182 int function() glc_gdk_gl_query_extension; 183 int function(GdkDisplay* display) glc_gdk_gl_query_extension_for_display; 184 int function(const(char)* extension) glc_gdk_gl_query_gl_extension; 185 186 // glgdk.GLVersion 187 188 int function() glc_gdk_gl_get_binary_age; 189 int function() glc_gdk_gl_get_interface_age; 190 int function() glc_gdk_gl_get_major_version; 191 int function() glc_gdk_gl_get_micro_version; 192 int function() glc_gdk_gl_get_minor_version; 193 } 194 195 196 // glgdk.GLConfig 197 198 alias glc_gdk_gl_config_get_type gdk_gl_config_get_type; 199 alias glc_gdk_gl_config_new gdk_gl_config_new; 200 alias glc_gdk_gl_config_new_by_mode gdk_gl_config_new_by_mode; 201 alias glc_gdk_gl_config_new_by_mode_for_screen gdk_gl_config_new_by_mode_for_screen; 202 alias glc_gdk_gl_config_new_for_display gdk_gl_config_new_for_display; 203 alias glc_gdk_gl_config_new_for_screen gdk_gl_config_new_for_screen; 204 alias glc_gdk_gl_config_get_attrib gdk_gl_config_get_attrib; 205 alias glc_gdk_gl_config_get_depth gdk_gl_config_get_depth; 206 alias glc_gdk_gl_config_get_layer_plane gdk_gl_config_get_layer_plane; 207 alias glc_gdk_gl_config_get_n_aux_buffers gdk_gl_config_get_n_aux_buffers; 208 alias glc_gdk_gl_config_get_n_sample_buffers gdk_gl_config_get_n_sample_buffers; 209 alias glc_gdk_gl_config_get_screen gdk_gl_config_get_screen; 210 alias glc_gdk_gl_config_get_visual gdk_gl_config_get_visual; 211 alias glc_gdk_gl_config_has_accum_buffer gdk_gl_config_has_accum_buffer; 212 alias glc_gdk_gl_config_has_alpha gdk_gl_config_has_alpha; 213 alias glc_gdk_gl_config_has_depth_buffer gdk_gl_config_has_depth_buffer; 214 alias glc_gdk_gl_config_has_stencil_buffer gdk_gl_config_has_stencil_buffer; 215 alias glc_gdk_gl_config_is_double_buffered gdk_gl_config_is_double_buffered; 216 alias glc_gdk_gl_config_is_rgba gdk_gl_config_is_rgba; 217 alias glc_gdk_gl_config_is_stereo gdk_gl_config_is_stereo; 218 219 // glgdk.GLContext 220 221 alias glc_gdk_gl_context_get_type gdk_gl_context_get_type; 222 alias glc_gdk_gl_context_new gdk_gl_context_new; 223 alias glc_gdk_gl_context_get_current gdk_gl_context_get_current; 224 alias glc_gdk_gl_context_release_current gdk_gl_context_release_current; 225 alias glc_gdk_gl_context_copy gdk_gl_context_copy; 226 alias glc_gdk_gl_context_get_gl_config gdk_gl_context_get_gl_config; 227 alias glc_gdk_gl_context_get_gl_drawable gdk_gl_context_get_gl_drawable; 228 alias glc_gdk_gl_context_get_render_type gdk_gl_context_get_render_type; 229 alias glc_gdk_gl_context_get_share_list gdk_gl_context_get_share_list; 230 alias glc_gdk_gl_context_is_direct gdk_gl_context_is_direct; 231 alias glc_gdk_gl_context_make_current gdk_gl_context_make_current; 232 233 // glgdk.GLDrawable 234 235 alias glc_gdk_gl_drawable_get_type gdk_gl_drawable_get_type; 236 alias glc_gdk_gl_drawable_get_gl_config gdk_gl_drawable_get_gl_config; 237 alias glc_gdk_gl_drawable_is_double_buffered gdk_gl_drawable_is_double_buffered; 238 alias glc_gdk_gl_drawable_swap_buffers gdk_gl_drawable_swap_buffers; 239 alias glc_gdk_gl_drawable_wait_gdk gdk_gl_drawable_wait_gdk; 240 alias glc_gdk_gl_drawable_wait_gl gdk_gl_drawable_wait_gl; 241 242 // glgdk.GLWindow 243 244 alias glc_gdk_gl_window_get_type gdk_gl_window_get_type; 245 alias glc_gdk_gl_window_new gdk_gl_window_new; 246 alias glc_gdk_window_get_gl_window gdk_window_get_gl_window; 247 alias glc_gdk_window_is_gl_capable gdk_window_is_gl_capable; 248 alias glc_gdk_window_set_gl_capability gdk_window_set_gl_capability; 249 alias glc_gdk_window_unset_gl_capability gdk_window_unset_gl_capability; 250 alias glc_gdk_gl_window_get_window gdk_gl_window_get_window; 251 252 // glgdk.GLdInit 253 254 alias glc_gdk_gl_init gdk_gl_init; 255 alias glc_gdk_gl_init_check gdk_gl_init_check; 256 257 // glgdk.GLQuery 258 259 alias glc_gdk_gl_query_version gdk_gl_query_version; 260 alias glc_gdk_gl_query_version_for_display gdk_gl_query_version_for_display; 261 alias glc_gdk_gl_get_proc_address gdk_gl_get_proc_address; 262 alias glc_gdk_gl_query_extension gdk_gl_query_extension; 263 alias glc_gdk_gl_query_extension_for_display gdk_gl_query_extension_for_display; 264 alias glc_gdk_gl_query_gl_extension gdk_gl_query_gl_extension; 265 266 // glgdk.GLVersion 267 268 alias glc_gdk_gl_get_binary_age gdk_gl_get_binary_age; 269 alias glc_gdk_gl_get_interface_age gdk_gl_get_interface_age; 270 alias glc_gdk_gl_get_major_version gdk_gl_get_major_version; 271 alias glc_gdk_gl_get_micro_version gdk_gl_get_micro_version; 272 alias glc_gdk_gl_get_minor_version gdk_gl_get_minor_version;