1 module glx.glxtokens;
2 
3 // This file is generated using dstep
4 
5 version(linux):
6 extern (C):
7 
8 enum GLX_VERSION_1_1 = 1;
9 enum GLX_VERSION_1_2 = 1;
10 enum GLX_VERSION_1_3 = 1;
11 enum GLX_VERSION_1_4 = 1;
12 
13 /*
14 ** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib)
15 */
16 enum GLX_USE_GL = 1; /* support GLX rendering */
17 enum GLX_BUFFER_SIZE = 2; /* depth of the color buffer */
18 enum GLX_LEVEL = 3; /* level in plane stacking */
19 enum GLX_RGBA = 4; /* true if RGBA mode */
20 enum GLX_DOUBLEBUFFER = 5; /* double buffering supported */
21 enum GLX_STEREO = 6; /* stereo buffering supported */
22 enum GLX_AUX_BUFFERS = 7; /* number of aux buffers */
23 enum GLX_RED_SIZE = 8; /* number of red component bits */
24 enum GLX_GREEN_SIZE = 9; /* number of green component bits */
25 enum GLX_BLUE_SIZE = 10; /* number of blue component bits */
26 enum GLX_ALPHA_SIZE = 11; /* number of alpha component bits */
27 enum GLX_DEPTH_SIZE = 12; /* number of depth bits */
28 enum GLX_STENCIL_SIZE = 13; /* number of stencil bits */
29 enum GLX_ACCUM_RED_SIZE = 14; /* number of red accum bits */
30 enum GLX_ACCUM_GREEN_SIZE = 15; /* number of green accum bits */
31 enum GLX_ACCUM_BLUE_SIZE = 16; /* number of blue accum bits */
32 enum GLX_ACCUM_ALPHA_SIZE = 17; /* number of alpha accum bits */
33 /*
34 ** FBConfig-specific attributes
35 */
36 enum GLX_X_VISUAL_TYPE = 0x22;
37 enum GLX_CONFIG_CAVEAT = 0x20; /* Like visual_info VISUAL_CAVEAT_EXT */
38 enum GLX_TRANSPARENT_TYPE = 0x23;
39 enum GLX_TRANSPARENT_INDEX_VALUE = 0x24;
40 enum GLX_TRANSPARENT_RED_VALUE = 0x25;
41 enum GLX_TRANSPARENT_GREEN_VALUE = 0x26;
42 enum GLX_TRANSPARENT_BLUE_VALUE = 0x27;
43 enum GLX_TRANSPARENT_ALPHA_VALUE = 0x28;
44 enum GLX_DRAWABLE_TYPE = 0x8010;
45 enum GLX_RENDER_TYPE = 0x8011;
46 enum GLX_X_RENDERABLE = 0x8012;
47 enum GLX_FBCONFIG_ID = 0x8013;
48 enum GLX_MAX_PBUFFER_WIDTH = 0x8016;
49 enum GLX_MAX_PBUFFER_HEIGHT = 0x8017;
50 enum GLX_MAX_PBUFFER_PIXELS = 0x8018;
51 enum GLX_VISUAL_ID = 0x800B;
52 
53 /* FBConfigSGIX Attributes */
54 enum GLX_OPTIMAL_PBUFFER_WIDTH_SGIX = 0x8019;
55 enum GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX = 0x801A;
56 
57 /*
58 ** Error return values from glXGetConfig.  Success is indicated by
59 ** a value of 0.
60 */
61 enum GLX_BAD_SCREEN = 1; /* screen # is bad */
62 enum GLX_BAD_ATTRIBUTE = 2; /* attribute to get is bad */
63 enum GLX_NO_EXTENSION = 3; /* no glx extension on server */
64 enum GLX_BAD_VISUAL = 4; /* visual # not known by GLX */
65 enum GLX_BAD_CONTEXT = 5; /* returned only by import_context EXT? */
66 enum GLX_BAD_VALUE = 6; /* returned only by glXSwapIntervalSGI? */
67 enum GLX_BAD_ENUM = 7; /* unused? */
68 
69 /* FBConfig attribute values */
70 
71 /*
72 ** Generic "don't care" value for glX ChooseFBConfig attributes (except
73 ** GLX_LEVEL)
74 */
75 enum GLX_DONT_CARE = 0xFFFFFFFF;
76 
77 /* GLX_RENDER_TYPE bits */
78 enum GLX_RGBA_BIT = 0x00000001;
79 enum GLX_COLOR_INDEX_BIT = 0x00000002;
80 enum GLX_RGBA_FLOAT_BIT_ARB = 0x00000004;
81 enum GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x00000008;
82 
83 /* GLX_DRAWABLE_TYPE bits */
84 enum GLX_WINDOW_BIT = 0x00000001;
85 enum GLX_PIXMAP_BIT = 0x00000002;
86 enum GLX_PBUFFER_BIT = 0x00000004;
87 
88 /* GLX_CONFIG_CAVEAT attribute values */
89 enum GLX_NONE = 0x8000;
90 enum GLX_SLOW_CONFIG = 0x8001;
91 enum GLX_NON_CONFORMANT_CONFIG = 0x800D;
92 
93 /* GLX_X_VISUAL_TYPE attribute values */
94 enum GLX_TRUE_COLOR = 0x8002;
95 enum GLX_DIRECT_COLOR = 0x8003;
96 enum GLX_PSEUDO_COLOR = 0x8004;
97 enum GLX_STATIC_COLOR = 0x8005;
98 enum GLX_GRAY_SCALE = 0x8006;
99 enum GLX_STATIC_GRAY = 0x8007;
100 
101 /* GLX_TRANSPARENT_TYPE attribute values */
102 /* #define GLX_NONE			   0x8000 */
103 enum GLX_TRANSPARENT_RGB = 0x8008;
104 enum GLX_TRANSPARENT_INDEX = 0x8009;
105 
106 /* glXCreateGLXPbuffer attributes */
107 enum GLX_PRESERVED_CONTENTS = 0x801B;
108 enum GLX_LARGEST_PBUFFER = 0x801C;
109 enum GLX_PBUFFER_HEIGHT = 0x8040; /* New for GLX 1.3 */
110 enum GLX_PBUFFER_WIDTH = 0x8041; /* New for GLX 1.3 */
111 
112 /* glXQueryGLXPBuffer attributes */
113 enum GLX_WIDTH = 0x801D;
114 enum GLX_HEIGHT = 0x801E;
115 enum GLX_EVENT_MASK = 0x801F;
116 
117 /* glXCreateNewContext render_type attribute values */
118 enum GLX_RGBA_TYPE = 0x8014;
119 enum GLX_COLOR_INDEX_TYPE = 0x8015;
120 
121 /* glXQueryContext attributes */
122 /* #define GLX_FBCONFIG_ID		  0x8013 */
123 /* #define GLX_RENDER_TYPE		  0x8011 */
124 enum GLX_SCREEN = 0x800C;
125 
126 /* glXSelectEvent event mask bits */
127 enum GLX_PBUFFER_CLOBBER_MASK = 0x08000000;
128 enum GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK = 0x04000000;
129 
130 /* GLXPbufferClobberEvent event_type values */
131 enum GLX_DAMAGED = 0x8020;
132 enum GLX_SAVED = 0x8021;
133 enum GLX_EXCHANGE_COMPLETE_INTEL = 0x8180;
134 enum GLX_BLIT_COMPLETE_INTEL = 0x8181;
135 enum GLX_FLIP_COMPLETE_INTEL = 0x8182;
136 
137 /* GLXPbufferClobberEvent draw_type values */
138 enum GLX_WINDOW = 0x8022;
139 enum GLX_PBUFFER = 0x8023;
140 
141 /* GLXPbufferClobberEvent buffer_mask bits */
142 enum GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001;
143 enum GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002;
144 enum GLX_BACK_LEFT_BUFFER_BIT = 0x00000004;
145 enum GLX_BACK_RIGHT_BUFFER_BIT = 0x00000008;
146 enum GLX_AUX_BUFFERS_BIT = 0x00000010;
147 enum GLX_DEPTH_BUFFER_BIT = 0x00000020;
148 enum GLX_STENCIL_BUFFER_BIT = 0x00000040;
149 enum GLX_ACCUM_BUFFER_BIT = 0x00000080;
150 
151 /*
152 ** Extension return values from glXGetConfig.  These are also
153 ** accepted as parameter values for glXChooseVisual.
154 */
155 
156 enum GLX_X_VISUAL_TYPE_EXT = 0x22; /* visual_info extension type */
157 enum GLX_TRANSPARENT_TYPE_EXT = 0x23; /* visual_info extension */
158 enum GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24; /* visual_info extension */
159 enum GLX_TRANSPARENT_RED_VALUE_EXT = 0x25; /* visual_info extension */
160 enum GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26; /* visual_info extension */
161 enum GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27; /* visual_info extension */
162 enum GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28; /* visual_info extension */
163 
164 /* Property values for visual_type */
165 enum GLX_TRUE_COLOR_EXT = 0x8002;
166 enum GLX_DIRECT_COLOR_EXT = 0x8003;
167 enum GLX_PSEUDO_COLOR_EXT = 0x8004;
168 enum GLX_STATIC_COLOR_EXT = 0x8005;
169 enum GLX_GRAY_SCALE_EXT = 0x8006;
170 enum GLX_STATIC_GRAY_EXT = 0x8007;
171 
172 /* Property values for transparent pixel */
173 enum GLX_NONE_EXT = 0x8000;
174 enum GLX_TRANSPARENT_RGB_EXT = 0x8008;
175 enum GLX_TRANSPARENT_INDEX_EXT = 0x8009;
176 
177 /* Property values for visual_rating */
178 enum GLX_VISUAL_CAVEAT_EXT = 0x20; /* visual_rating extension type */
179 enum GLX_SLOW_VISUAL_EXT = 0x8001;
180 enum GLX_NON_CONFORMANT_VISUAL_EXT = 0x800D;
181 
182 /* Property values for swap method (GLX_OML_swap_method) */
183 enum GLX_SWAP_METHOD_OML = 0x8060;
184 enum GLX_SWAP_EXCHANGE_OML = 0x8061;
185 enum GLX_SWAP_COPY_OML = 0x8062;
186 enum GLX_SWAP_UNDEFINED_OML = 0x8063;
187 
188 /* Property values for multi-sampling */
189 enum GLX_VISUAL_SELECT_GROUP_SGIX = 0x8028; /* visuals grouped by select priority */
190 
191 /*
192 ** Names for attributes to glXGetClientString.
193 */
194 enum GLX_VENDOR = 0x1;
195 enum GLX_VERSION = 0x2;
196 enum GLX_EXTENSIONS = 0x3;
197 
198 /*
199 ** Names for attributes to glXQueryContextInfoEXT.
200 */
201 enum GLX_SHARE_CONTEXT_EXT = 0x800A; /* id of share context */
202 enum GLX_VISUAL_ID_EXT = 0x800B; /* id of context's visual */
203 enum GLX_SCREEN_EXT = 0x800C; /* screen number */
204 
205 /*
206 ** GLX_EXT_texture_from_pixmap
207 */
208 enum GLX_BIND_TO_TEXTURE_RGB_EXT = 0x20D0;
209 enum GLX_BIND_TO_TEXTURE_RGBA_EXT = 0x20D1;
210 enum GLX_BIND_TO_MIPMAP_TEXTURE_EXT = 0x20D2;
211 enum GLX_BIND_TO_TEXTURE_TARGETS_EXT = 0x20D3;
212 enum GLX_Y_INVERTED_EXT = 0x20D4;
213 
214 enum GLX_TEXTURE_FORMAT_EXT = 0x20D5;
215 enum GLX_TEXTURE_TARGET_EXT = 0x20D6;
216 enum GLX_MIPMAP_TEXTURE_EXT = 0x20D7;
217 
218 enum GLX_TEXTURE_FORMAT_NONE_EXT = 0x20D8;
219 enum GLX_TEXTURE_FORMAT_RGB_EXT = 0x20D9;
220 enum GLX_TEXTURE_FORMAT_RGBA_EXT = 0x20DA;
221 
222 enum GLX_TEXTURE_1D_BIT_EXT = 0x00000001;
223 enum GLX_TEXTURE_2D_BIT_EXT = 0x00000002;
224 enum GLX_TEXTURE_RECTANGLE_BIT_EXT = 0x00000004;
225 
226 enum GLX_TEXTURE_1D_EXT = 0x20DB;
227 enum GLX_TEXTURE_2D_EXT = 0x20DC;
228 enum GLX_TEXTURE_RECTANGLE_EXT = 0x20DD;
229 
230 enum GLX_FRONT_LEFT_EXT = 0x20DE;
231 enum GLX_FRONT_RIGHT_EXT = 0x20DF;
232 enum GLX_BACK_LEFT_EXT = 0x20E0;
233 enum GLX_BACK_RIGHT_EXT = 0x20E1;
234 enum GLX_FRONT_EXT = GLX_FRONT_LEFT_EXT;
235 enum GLX_BACK_EXT = GLX_BACK_LEFT_EXT;
236 enum GLX_AUX0_EXT = 0x20E2;
237 enum GLX_AUX1_EXT = 0x20E3;
238 enum GLX_AUX2_EXT = 0x20E4;
239 enum GLX_AUX3_EXT = 0x20E5;
240 enum GLX_AUX4_EXT = 0x20E6;
241 enum GLX_AUX5_EXT = 0x20E7;
242 enum GLX_AUX6_EXT = 0x20E8;
243 enum GLX_AUX7_EXT = 0x20E9;
244 enum GLX_AUX8_EXT = 0x20EA;
245 enum GLX_AUX9_EXT = 0x20EB;
246 
247 /*
248  * GLX 1.4 and later:
249  */
250 enum GLX_SAMPLE_BUFFERS_SGIS = 100000;
251 enum GLX_SAMPLES_SGIS = 100001;
252 
253 /*
254  * GLX_EXT_framebuffer_SRGB
255  */
256 enum GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20B2;
257 
258 /*
259  * GLX_ARB_create_context
260  * GLX_ARB_create_context_profile
261  * GLX_EXT_create_context_es2_profile
262  */
263 enum GLX_CONTEXT_MAJOR_VERSION_ARB = 0x2091;
264 enum GLX_CONTEXT_MINOR_VERSION_ARB = 0x2092;
265 enum GLX_CONTEXT_FLAGS_ARB = 0x2094;
266 enum GLX_CONTEXT_PROFILE_MASK_ARB = 0x9126;
267 
268 enum GLX_CONTEXT_DEBUG_BIT_ARB = 0x0001;
269 enum GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x0002;
270 
271 enum GLX_CONTEXT_CORE_PROFILE_BIT_ARB = 0x0001;
272 enum GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x0002;
273 enum GLX_CONTEXT_ES2_PROFILE_BIT_EXT = 0x0004;
274 
275 /*
276  * GLX_ARB_create_context_robustness
277  */
278 enum GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x0004;
279 enum GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256;
280 enum GLX_NO_RESET_NOTIFICATION_ARB = 0x8261;
281 enum GLX_LOSE_CONTEXT_ON_RESET_ARB = 0x8252;
282 
283 /* !__GLX_glxtokens_h__ */