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.glgtk;
26 
27 import std.stdio;
28 import gtkglc.glgtktypes;
29 import gtkd.Loader;
30 import gtkd.paths;
31 
32 shared static this()
33 {
34 	// glgtk.GLtInit
35 
36 	Linker.link(gtk_gl_init, "gtk_gl_init", LIBRARY.GLGTK);
37 	Linker.link(gtk_gl_init_check, "gtk_gl_init_check", LIBRARY.GLGTK);
38 
39 	// glgtk.GLWidget
40 
41 	Linker.link(gtk_widget_begin_gl, "gtk_widget_begin_gl", LIBRARY.GLGTK);
42 	Linker.link(gtk_widget_create_gl_context, "gtk_widget_create_gl_context", LIBRARY.GLGTK);
43 	Linker.link(gtk_widget_end_gl, "gtk_widget_end_gl", LIBRARY.GLGTK);
44 	Linker.link(gtk_widget_get_gl_config, "gtk_widget_get_gl_config", LIBRARY.GLGTK);
45 	Linker.link(gtk_widget_get_gl_context, "gtk_widget_get_gl_context", LIBRARY.GLGTK);
46 	Linker.link(gtk_widget_get_gl_window, "gtk_widget_get_gl_window", LIBRARY.GLGTK);
47 	Linker.link(gtk_widget_is_gl_capable, "gtk_widget_is_gl_capable", LIBRARY.GLGTK);
48 	Linker.link(gtk_widget_set_gl_capability, "gtk_widget_set_gl_capability", LIBRARY.GLGTK);
49 }
50 
51 __gshared extern(C)
52 {
53 
54 	// glgtk.GLtInit
55 
56 	void function(int* argc, char*** argv) c_gtk_gl_init;
57 	int function(int* argc, char*** argv) c_gtk_gl_init_check;
58 
59 	// glgtk.GLWidget
60 
61 	int function(GtkWidget* widget) c_gtk_widget_begin_gl;
62 	GdkGLContext* function(GtkWidget* widget, GdkGLContext* shareList, int direct, int renderType) c_gtk_widget_create_gl_context;
63 	void function(GtkWidget* widget, int doSwap) c_gtk_widget_end_gl;
64 	GdkGLConfig* function(GtkWidget* widget) c_gtk_widget_get_gl_config;
65 	GdkGLContext* function(GtkWidget* widget) c_gtk_widget_get_gl_context;
66 	GdkGLWindow* function(GtkWidget* widget) c_gtk_widget_get_gl_window;
67 	int function(GtkWidget* widget) c_gtk_widget_is_gl_capable;
68 	int function(GtkWidget* widget, GdkGLConfig* glconfig, GdkGLContext* shareList, int direct, int renderType) c_gtk_widget_set_gl_capability;
69 }
70 
71 
72 // glgtk.GLtInit
73 
74 alias c_gtk_gl_init gtk_gl_init;
75 alias c_gtk_gl_init_check gtk_gl_init_check;
76 
77 // glgtk.GLWidget
78 
79 alias c_gtk_widget_begin_gl gtk_widget_begin_gl;
80 alias c_gtk_widget_create_gl_context gtk_widget_create_gl_context;
81 alias c_gtk_widget_end_gl gtk_widget_end_gl;
82 alias c_gtk_widget_get_gl_config gtk_widget_get_gl_config;
83 alias c_gtk_widget_get_gl_context gtk_widget_get_gl_context;
84 alias c_gtk_widget_get_gl_window gtk_widget_get_gl_window;
85 alias c_gtk_widget_is_gl_capable gtk_widget_is_gl_capable;
86 alias c_gtk_widget_set_gl_capability gtk_widget_set_gl_capability;