2 # This file is part of duit.
4 # duit 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 # duit 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 duit; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 # Definitions for wrapping gtk gl ext GL
31 public import glib.glibtypes;
32 public import gdk.gdktypes;
60 # must start with wrap
65 ###########################################################
66 ### GL ####################################################
67 ###########################################################
69 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglinit.html
76 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglquery.html
83 structWrap: GdkDisplay* Display
86 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglconfig.html
90 prefix: gdk_gl_config_
93 structWrap: GdkScreen* Screen
97 * Creates a mew OpenGL frame buffer configuration that match the specified display mode,
98 * or the fallback mode.
99 * @param mode display mode bit mask.
101 this(GLConfigMode mode, GLConfigMode fallback)
104 gdkGLConfig = cast(GdkGLConfig*)gdk_gl_config_new_by_mode(mode);
105 if ( gdkGLConfig is null )
107 printf ("*** Cannot find the double-buffered visual.\n");
108 printf ("*** Trying single-buffered visual.\n");
109 gdkGLConfig = cast(GdkGLConfig*)gdk_gl_config_new_by_mode(fallback);
111 if ( gdkGLConfig is null )
113 printf ("*** No appropriate OpenGL-capable visual found.\n");
114 throw new Error("GL configure failed");
123 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglcontext.html
127 prefix: gdk_gl_context_
128 import: glgdk.GLDrawable
129 structWrap: GdkGLDrawable* GLDrawable
132 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkgldrawable.html
134 struct: GdkGLDrawable
136 prefix: gdk_gl_drawable_
137 import: glgdk.GLContext
138 structWrap: GdkGLContext* GLContext
141 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglpixmap.html
145 prefix: gdk_gl_pixmap_
146 import: glgdk.GLConfig
147 structWrap: GdkGLCondif* GLConfig
150 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglwindow.html
154 prefix: gdk_gl_window_
155 import: glgdk.GLConfig
156 structWrap: GdkGLCondif* GLConfig
159 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglfont.html
166 structWrap: GdkDisplay* Display
167 import: pango.PgFontDescription
168 structWrap: PangoFontDescription* PgFontDescription
171 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglshapes.html
178 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkgltokens.html
182 prefix: gdk_gl_tokens_
185 #file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglx.html
190 #import: glgdk.GLConfig
191 #structWrap: GdkGLCondif* GLConfig
193 #structWrap: GdkScreen* Screen
194 #import: glgdk.GLContext
195 #structWrap: GdkGLContext* GLContext
196 #import: glgdk.GLPixmap
197 #structWrap: GdkGLPixmap* GLPixmap
198 #import: glgdk.GLWindow
199 #structWrap: GdkGLWindow* GLWindow
202 file: /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglversion.html
204 #struct: GdkGLVersion
206 prefix: gdk_gl_version_