alternative to assert
[gtkD.git] / gtkD / srcgl / gtkglc / glgtk.d
blobc08d7b98fb9816e0ac3e6b07f7da17885aa1e283
1 /*
2 * This file is part of gtkD.
4 * gtkD is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * gtkD is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
23 // Adapted from John Reimer's DUI loader modules
26 module gtkglc.glgtk;
28 version(Tango) private import tango.stdc.stdio;
29 else private import std.stdio;
30 private import gtkglc.glgtktypes;
31 private import gtkc.Loader;
32 private import gtkc.paths;
34 private Linker glgtk_Linker;
36 static this()
38 glgtk_Linker = new Linker(libPath ~ importLibs[LIBRARY.GLGTK] );
39 glgtk_Linker.link(glgtkLinks);
40 debug writefln("* Finished static this(): glgtk");
43 static ~this()
45 delete glgtk_Linker;
46 debug writefln("* Finished static ~this(): glgtk");
49 extern(C)
51 // glgtk.GLtInit
53 void function(int* argc, char*** argv)gtk_gl_init;
54 gboolean function(int* argc, char*** argv)gtk_gl_init_check;
55 gboolean function(int* argc, char*** argv)gtk_gl_parse_args;
57 // glgtk.GLWidget
59 gboolean function(GtkWidget* widget, GdkGLConfig* glconfig, GdkGLContext* shareList, gboolean direct, int renderType)gtk_widget_set_gl_capability;
60 gboolean function(GtkWidget* widget)gtk_widget_is_gl_capable;
61 GdkGLConfig* function(GtkWidget* widget)gtk_widget_get_gl_config;
62 GdkGLContext* function(GtkWidget* widget, GdkGLContext* shareList, gboolean direct, int renderType)gtk_widget_create_gl_context;
63 GdkGLContext* function(GtkWidget* widget)gtk_widget_get_gl_context;
64 GdkGLWindow* function(GtkWidget* widget)gtk_widget_get_gl_window;
66 // glgtk.GLtVersion
69 // glgtk.
75 Symbol[] glgtkLinks =
78 { "gtk_gl_init", cast(void**)& gtk_gl_init},
79 { "gtk_gl_init_check", cast(void**)& gtk_gl_init_check},
80 { "gtk_gl_parse_args", cast(void**)& gtk_gl_parse_args},
81 { "gtk_widget_set_gl_capability", cast(void**)& gtk_widget_set_gl_capability},
82 { "gtk_widget_is_gl_capable", cast(void**)& gtk_widget_is_gl_capable},
83 { "gtk_widget_get_gl_config", cast(void**)& gtk_widget_get_gl_config},
84 { "gtk_widget_create_gl_context", cast(void**)& gtk_widget_create_gl_context},
85 { "gtk_widget_get_gl_context", cast(void**)& gtk_widget_get_gl_context},
86 { "gtk_widget_get_gl_window", cast(void**)& gtk_widget_get_gl_window},