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
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
23 module glgdk
.glgdktypes
;
26 public import glib
.glibtypes
;
27 public import gdk
.gdktypes
;
30 public enum GdkGLConfigMode
33 MODE_RGBA
= 0, /+* same as RGB +/
40 MODE_STENCIL
= 1 << 5,
42 MODE_MULTISAMPLE
= 1 << 7 /+* not supported yet +/
44 alias GdkGLConfigMode GLConfigMode
;
46 public enum GdkGLConfigAttrib
48 USE_GL
= 1, /+* support GLX rendering +/
49 BUFFER_SIZE
= 2, /+* depth of the color buffer +/
50 LEVEL
= 3, /+* level inn plane stacking +/
51 RGBA
= 4, /+* true if RGBA mode +/
52 DOUBLEBUFFER
= 5, /+* double buffering supported +/
53 STEREO
= 6, /+* stereo buffering supported +/
54 AUX_BUFFERS
= 7, /+* number of aux buffers +/
55 RED_SIZE
= 8, /+* number of red component bits +/
56 GREEN_SIZE
= 9, /+* number of green component bits +/
57 BLUE_SIZE
= 10, /+* number of blue component bits +/
58 ALPHA_SIZE
= 11, /+* number of alpha component bits +/
59 DEPTH_SIZE
= 12, /+* number of depth bits +/
60 STENCIL_SIZE
= 13, /+* number of stencil bits +/
61 ACCUM_RED_SIZE
= 14, /+* number of red accum bits +/
62 ACCUM_GREEN_SIZE
= 15, /+* number of green accum bits +/
63 ACCUM_BLUE_SIZE
= 16, /+* number of blue accum bits +/
64 ACCUM_ALPHA_SIZE
= 17, /+* number of alpha accum bits +/
66 * FBConfig-specific attributes.
67 * [ GLX 1.3 and later ]
71 TRANSPARENT_TYPE
= 0x23,
72 TRANSPARENT_INDEX_VALUE
= 0x24,
73 TRANSPARENT_RED_VALUE
= 0x25,
74 TRANSPARENT_GREEN_VALUE
= 0x26,
75 TRANSPARENT_BLUE_VALUE
= 0x27,
76 TRANSPARENT_ALPHA_VALUE
= 0x28,
77 DRAWABLE_TYPE
= 0x8010,
79 X_RENDERABLE
= 0x8012,
81 MAX_PBUFFER_WIDTH
= 0x8016,
82 MAX_PBUFFER_HEIGHT
= 0x8017,
83 MAX_PBUFFER_PIXELS
= 0x8018,
87 * Multisampling configuration attributes.
88 * [ GLX 1.4 and later ]
90 SAMPLE_BUFFERS
= 100000,
93 alias GdkGLConfigAttrib GLConfigAttrib
;
95 public enum GdkGLConfigCaveat
97 DONT_CARE
= 0xFFFFFFFF, /+* GDK_GL_DONT_CARE +/
98 NONE
= 0x8000, /+* GDK_GL_NONE +/
99 GDK_GL_SLOW_CONFIG
= 0x8001,
100 GDK_GL_NON_CONFORMANT_CONFIG
= 0x800D
102 alias GdkGLConfigCaveat GLConfigCaveat
;
104 public enum GdkGLVisualType
106 TYPE_DONT_CARE
= 0xFFFFFFFF, /+* GDK_GL_DONT_CARE +/
107 GDK_GL_TRUE_COLOR
= 0x8002,
108 GDK_GL_DIRECT_COLOR
= 0x8003,
109 GDK_GL_PSEUDO_COLOR
= 0x8004,
110 GDK_GL_STATIC_COLOR
= 0x8005,
111 GDK_GL_GRAY_SCALE
= 0x8006,
112 GDK_GL_STATIC_GRAY
= 0x8007
114 alias GdkGLVisualType GLVisualType
;
116 public enum GdkGLTransparentType
118 NONE
= 0x8000, /+* GDK_GL_NONE +/
122 alias GdkGLTransparentType GLTransparentType
;
124 public enum GdkGLDrawableTypeMask
126 WINDOW_BIT
= 1 << 0, /+* 0x00000001 +/
127 PIXMAP_BIT
= 1 << 1, /+* 0x00000002 +/
128 PBUFFER_BIT
= 1 << 2 /+* 0x00000004 +/
130 alias GdkGLDrawableTypeMask GLDrawableTypeMask
;
132 public enum GdkGLRenderTypeMask
134 RGBA_BIT
= 1 << 0, /+* 0x00000001 +/
135 COLOR_INDEX_BIT
= 1 << 1 /+* 0x00000002 +/
137 alias GdkGLRenderTypeMask GLRenderTypeMask
;
139 public enum GdkGLBufferMask
141 FRONT_LEFT_BUFFER_BIT
= 1 << 0, /+* 0x00000001 +/
142 FRONT_RIGHT_BUFFER_BIT
= 1 << 1, /+* 0x00000002 +/
143 BACK_LEFT_BUFFER_BIT
= 1 << 2, /+* 0x00000004 +/
144 BACK_RIGHT_BUFFER_BIT
= 1 << 3, /+* 0x00000008 +/
145 AUX_BUFFERS_BIT
= 1 << 4, /+* 0x00000010 +/
146 DEPTH_BUFFER_BIT
= 1 << 5, /+* 0x00000020 +/
147 STENCIL_BUFFER_BIT
= 1 << 6, /+* 0x00000040 +/
148 ACCUM_BUFFER_BIT
= 1 << 7 /+* 0x00000080 +/
150 alias GdkGLBufferMask GLBufferMask
;
152 public enum GdkGLConfigError
154 BAD_SCREEN
= 1, /+* screen # is bad +/
155 BAD_ATTRIBUTE
= 2, /+* attribute to get is bad +/
156 NO_EXTENSION
= 3, /+* no glx extension on server +/
157 BAD_VISUAL
= 4, /+* visual # not known by GLX +/
158 BAD_CONTEXT
= 5, /+* returned only by importContext EXT? +/
159 BAD_VALUE
= 6, /+* returned only by glXSwapIntervalSGI? +/
160 BAD_ENUM
= 7 /+* unused? +/
162 alias GdkGLConfigError GLConfigError
;
164 public enum GdkGLRenderType
167 COLOR_INDEX_TYPE
= 0x8015
169 alias GdkGLRenderType GLRenderType
;
171 public enum GdkGLDrawableAttrib
173 PRESERVED_CONTENTS
= 0x801B,
174 LARGEST_PBUFFER
= 0x801C,
179 alias GdkGLDrawableAttrib GLDrawableAttrib
;
181 public enum GdkGLPbufferAttrib
183 PRESERVED_CONTENTS
= 0x801B, /+* GDK_GL_PRESERVED_CONTENTS +/
184 LARGEST_PBUFFER
= 0x801C, /+* GDK_GL_LARGEST_PBUFFER +/
188 alias GdkGLPbufferAttrib GLPbufferAttrib
;
190 public enum GdkGLEventMask
192 PBUFFER_CLOBBER_MASK
= 1 << 27 /+* 0x08000000 +/
194 alias GdkGLEventMask GLEventMask
;
196 public enum GdkGLEventType
201 alias GdkGLEventType GLEventType
;
204 * << Geometric Object RenderingX Window System Interaction >>
206 public enum GdkGLDrawableType
211 alias GdkGLDrawableType GLDrawableType
;
217 public struct GdkGLConfig
{}
223 public struct GdkGLContext
{}
229 public struct GdkGLDrawable
{}
235 public struct GdkGLPixmap
{}
241 public struct GdkGLWindow
{}
245 * Returns the GdkGLDrawable held by the pixmap. In fact, this is macro
246 * that casts the result of gdk_pixmap_get_gl_pixmap to GdkGLDrawable.
247 * pixmap :a GdkGLPixmap.
248 * Returns :the GdkGLDrawable.
249 * << Rendering SurfaceOpenGL Window >>
252 // #define gdk_pixmap_get_gl_drawable(pixmap)
255 * Returns the GdkGLDrawable held by the window. In fact, this is macro
256 * that casts the result of gdk_window_get_gl_window to GdkGLDrawable.
257 * window :a GdkGLWindow.
258 * Returns :the GdkGLDrawable.
259 * << OpenGL PixmapFont Rendering >>
262 // #define gdk_window_get_gl_drawable(window)
270 // #define GDKGLEXT_CHECK_VERSION(major, minor, micro)
274 // void (*GdkGLProc) (void);
275 public typedef extern(C
) void function () GdkGLProc
;