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 module gtkglc.glgdktypes;
25 
26 
27 public import gtkc.glibtypes;
28 public import gtkc.gdktypes;
29 alias uint VisualID;
30 
31 public enum GdkGLConfigMode
32 {
33 	MODE_RGB = 0,
34 	MODE_RGBA = 0, /+* same as RGB +/
35 	MODE_INDEX = 1 << 0,
36 	MODE_SINGLE = 0,
37 	MODE_DOUBLE = 1 << 1,
38 	MODE_STEREO = 1 << 2,
39 	MODE_ALPHA = 1 << 3,
40 	MODE_DEPTH = 1 << 4,
41 	MODE_STENCIL = 1 << 5,
42 	MODE_ACCUM = 1 << 6,
43 	MODE_MULTISAMPLE = 1 << 7 /+* not supported yet +/
44 }
45 alias GdkGLConfigMode GLConfigMode;
46 
47 public enum GdkGLConfigAttrib
48 {
49 	USE_GL = 1, /+* support GLX rendering +/
50 	BUFFER_SIZE = 2, /+* depth of the color buffer +/
51 	LEVEL = 3, /+* level inn plane stacking +/
52 	RGBA = 4, /+* true if RGBA mode +/
53 	DOUBLEBUFFER = 5, /+* double buffering supported +/
54 	STEREO = 6, /+* stereo buffering supported +/
55 	AUX_BUFFERS = 7, /+* number of aux buffers +/
56 	RED_SIZE = 8, /+* number of red component bits +/
57 	GREEN_SIZE = 9, /+* number of green component bits +/
58 	BLUE_SIZE = 10, /+* number of blue component bits +/
59 	ALPHA_SIZE = 11, /+* number of alpha component bits +/
60 	DEPTH_SIZE = 12, /+* number of depth bits +/
61 	STENCIL_SIZE = 13, /+* number of stencil bits +/
62 	ACCUM_RED_SIZE = 14, /+* number of red accum bits +/
63 	ACCUM_GREEN_SIZE = 15, /+* number of green accum bits +/
64 	ACCUM_BLUE_SIZE = 16, /+* number of blue accum bits +/
65 	ACCUM_ALPHA_SIZE = 17, /+* number of alpha accum bits +/
66 	/+*
67 	 * FBConfig-specific attributes.
68 	 * [ GLX 1.3 and later ]
69 	+/
70 	CONFIG_CAVEAT = 0x20,
71 	X_VISUAL_TYPE = 0x22,
72 	TRANSPARENT_TYPE = 0x23,
73 	TRANSPARENT_INDEX_VALUE = 0x24,
74 	TRANSPARENT_RED_VALUE = 0x25,
75 	TRANSPARENT_GREEN_VALUE = 0x26,
76 	TRANSPARENT_BLUE_VALUE = 0x27,
77 	TRANSPARENT_ALPHA_VALUE = 0x28,
78 	DRAWABLE_TYPE = 0x8010,
79 	RENDER_TYPE = 0x8011,
80 	X_RENDERABLE = 0x8012,
81 	FBCONFIG_ID = 0x8013,
82 	VISUAL_ID = 0x800B,
83 	SCREEN = 0x800C,
84 	/+*
85 	 * Multisampling configuration attributes.
86 	 * [ GLX 1.4 and later ]
87 	+/
88 	SAMPLE_BUFFERS = 100000,
89 	SAMPLES = 100001
90 }
91 alias GdkGLConfigAttrib GLConfigAttrib;
92 
93 public enum GdkGLConfigCaveat
94 {
95 	DONT_CARE = cast(int)0xFFFFFFFF, /+* GDK_GL_DONT_CARE +/
96 	NONE = 0x8000, /+* GDK_GL_NONE +/
97 	GDK_GL_SLOW_CONFIG = 0x8001,
98 	GDK_GL_NON_CONFORMANT_CONFIG = 0x800D
99 }
100 alias GdkGLConfigCaveat GLConfigCaveat;
101 
102 public enum GdkGLVisualType
103 {
104 	TYPE_DONT_CARE = cast(int)0xFFFFFFFF, /+* GDK_GL_DONT_CARE +/
105 	GDK_GL_TRUE_COLOR = 0x8002,
106 	GDK_GL_DIRECT_COLOR = 0x8003,
107 }
108 alias GdkGLVisualType GLVisualType;
109 
110 public enum GdkGLTransparentType
111 {
112 	NONE = 0x8000, /+* GDK_GL_NONE +/
113 	RGB = 0x8008,
114 }
115 alias GdkGLTransparentType GLTransparentType;
116 
117 public enum GdkGLDrawableTypeMask
118 {
119 	WINDOW_BIT = 1 << 0, /+* 0x00000001 +/
120 }
121 alias GdkGLDrawableTypeMask GLDrawableTypeMask;
122 
123 public enum GdkGLRenderTypeMask
124 {
125 	RGBA_BIT = 1 << 0, /+* 0x00000001 +/
126 }
127 alias GdkGLRenderTypeMask GLRenderTypeMask;
128 
129 public enum GdkGLBufferMask
130 {
131 	FRONT_LEFT_BUFFER_BIT = 1 << 0, /+* 0x00000001 +/
132 	FRONT_RIGHT_BUFFER_BIT = 1 << 1, /+* 0x00000002 +/
133 	BACK_LEFT_BUFFER_BIT = 1 << 2, /+* 0x00000004 +/
134 	BACK_RIGHT_BUFFER_BIT = 1 << 3, /+* 0x00000008 +/
135 	AUX_BUFFERS_BIT = 1 << 4, /+* 0x00000010 +/
136 	DEPTH_BUFFER_BIT = 1 << 5, /+* 0x00000020 +/
137 	STENCIL_BUFFER_BIT = 1 << 6, /+* 0x00000040 +/
138 	ACCUM_BUFFER_BIT = 1 << 7 /+* 0x00000080 +/
139 }
140 alias GdkGLBufferMask GLBufferMask;
141 
142 public enum GdkGLConfigError
143 {
144 	BAD_SCREEN = 1, /+* screen # is bad +/
145 	BAD_ATTRIBUTE = 2, /+* attribute to get is bad +/
146 	NO_EXTENSION = 3, /+* no glx extension on server +/
147 	BAD_VISUAL = 4, /+* visual # not known by GLX +/
148 	BAD_CONTEXT = 5, /+* returned only by importContext EXT? +/
149 	BAD_VALUE = 6, /+* returned only by glXSwapIntervalSGI? +/
150 	BAD_ENUM = 7 /+* unused? +/
151 }
152 alias GdkGLConfigError GLConfigError;
153 
154 public enum GdkGLRenderType
155 {
156 	RGBA_TYPE = 0x8014,
157 }
158 alias GdkGLRenderType GLRenderType;
159 
160 public enum GdkGLDrawableAttrib
161 {
162 	PRESERVED_CONTENTS = 0x801B,
163 	WIDTH = 0x801D,
164 	HEIGHT = 0x801E,
165 	EVENT_MASK = 0x801F
166 }
167 alias GdkGLDrawableAttrib GLDrawableAttrib;
168 
169 
170 /**
171  * Main Gtk struct.
172  */
173 public struct GdkGLConfig{}
174 
175 
176 /**
177  * Main Gtk struct.
178  */
179 public struct GdkGLContext{}
180 
181 
182 /**
183  * Main Gtk struct.
184  */
185 public struct GdkGLDrawable{}
186 
187 
188 /**
189  * Main Gtk struct.
190  */
191 public struct GdkGLWindow{}
192 
193 
194 /*
195  */
196 // TODO
197 // #define gdk_window_get_gl_drawable(window)
198 
199 /*
200  */
201 // void (*GdkGLProc) (void);
202 public alias extern(C) void function() GdkGLProc;