1 | #ifndef __GLX_glxtokens_h__
|
---|
2 | #define __GLX_glxtokens_h__
|
---|
3 |
|
---|
4 | /* $XFree86: xc/include/GL/glxtokens.h,v 1.5 2001/03/21 15:51:38 dawes Exp $ */
|
---|
5 | /*
|
---|
6 | ** License Applicability. Except to the extent portions of this file are
|
---|
7 | ** made subject to an alternative license as permitted in the SGI Free
|
---|
8 | ** Software License B, Version 1.1 (the "License"), the contents of this
|
---|
9 | ** file are subject only to the provisions of the License. You may not use
|
---|
10 | ** this file except in compliance with the License. You may obtain a copy
|
---|
11 | ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
---|
12 | ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
---|
13 | **
|
---|
14 | ** http://oss.sgi.com/projects/FreeB
|
---|
15 | **
|
---|
16 | ** Note that, as provided in the License, the Software is distributed on an
|
---|
17 | ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
---|
18 | ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
---|
19 | ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
---|
20 | ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
---|
21 | **
|
---|
22 | ** Original Code. The Original Code is: OpenGL Sample Implementation,
|
---|
23 | ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
---|
24 | ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
---|
25 | ** Copyright in any portions created by third parties is as indicated
|
---|
26 | ** elsewhere herein. All Rights Reserved.
|
---|
27 | **
|
---|
28 | ** Additional Notice Provisions: The application programming interfaces
|
---|
29 | ** established by SGI in conjunction with the Original Code are The
|
---|
30 | ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
|
---|
31 | ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
|
---|
32 | ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
|
---|
33 | ** Window System(R) (Version 1.3), released October 19, 1998. This software
|
---|
34 | ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
|
---|
35 | ** published by SGI, but has not been independently verified as being
|
---|
36 | ** compliant with the OpenGL(R) version 1.2.1 Specification.
|
---|
37 | */
|
---|
38 |
|
---|
39 | #ifdef __cplusplus
|
---|
40 | extern "C" {
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #define GLX_VERSION_1_1 1
|
---|
44 | #define GLX_VERSION_1_2 1
|
---|
45 | #define GLX_VERSION_1_3 1
|
---|
46 | #define GLX_VERSION_1_4 1
|
---|
47 |
|
---|
48 | /*
|
---|
49 | ** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib)
|
---|
50 | */
|
---|
51 | #define GLX_USE_GL 1 /* support GLX rendering */
|
---|
52 | #define GLX_BUFFER_SIZE 2 /* depth of the color buffer */
|
---|
53 | #define GLX_LEVEL 3 /* level in plane stacking */
|
---|
54 | #define GLX_RGBA 4 /* true if RGBA mode */
|
---|
55 | #define GLX_DOUBLEBUFFER 5 /* double buffering supported */
|
---|
56 | #define GLX_STEREO 6 /* stereo buffering supported */
|
---|
57 | #define GLX_AUX_BUFFERS 7 /* number of aux buffers */
|
---|
58 | #define GLX_RED_SIZE 8 /* number of red component bits */
|
---|
59 | #define GLX_GREEN_SIZE 9 /* number of green component bits */
|
---|
60 | #define GLX_BLUE_SIZE 10 /* number of blue component bits */
|
---|
61 | #define GLX_ALPHA_SIZE 11 /* number of alpha component bits */
|
---|
62 | #define GLX_DEPTH_SIZE 12 /* number of depth bits */
|
---|
63 | #define GLX_STENCIL_SIZE 13 /* number of stencil bits */
|
---|
64 | #define GLX_ACCUM_RED_SIZE 14 /* number of red accum bits */
|
---|
65 | #define GLX_ACCUM_GREEN_SIZE 15 /* number of green accum bits */
|
---|
66 | #define GLX_ACCUM_BLUE_SIZE 16 /* number of blue accum bits */
|
---|
67 | #define GLX_ACCUM_ALPHA_SIZE 17 /* number of alpha accum bits */
|
---|
68 | /*
|
---|
69 | ** FBConfig-specific attributes
|
---|
70 | */
|
---|
71 | #define GLX_X_VISUAL_TYPE 0x22
|
---|
72 | #define GLX_CONFIG_CAVEAT 0x20 /* Like visual_info VISUAL_CAVEAT_EXT */
|
---|
73 | #define GLX_TRANSPARENT_TYPE 0x23
|
---|
74 | #define GLX_TRANSPARENT_INDEX_VALUE 0x24
|
---|
75 | #define GLX_TRANSPARENT_RED_VALUE 0x25
|
---|
76 | #define GLX_TRANSPARENT_GREEN_VALUE 0x26
|
---|
77 | #define GLX_TRANSPARENT_BLUE_VALUE 0x27
|
---|
78 | #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
|
---|
79 | #define GLX_DRAWABLE_TYPE 0x8010
|
---|
80 | #define GLX_RENDER_TYPE 0x8011
|
---|
81 | #define GLX_X_RENDERABLE 0x8012
|
---|
82 | #define GLX_FBCONFIG_ID 0x8013
|
---|
83 | #define GLX_MAX_PBUFFER_WIDTH 0x8016
|
---|
84 | #define GLX_MAX_PBUFFER_HEIGHT 0x8017
|
---|
85 | #define GLX_MAX_PBUFFER_PIXELS 0x8018
|
---|
86 | #define GLX_VISUAL_ID 0x800B
|
---|
87 |
|
---|
88 | /* FBConfigSGIX Attributes */
|
---|
89 | #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
|
---|
90 | #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
|
---|
91 |
|
---|
92 | /*
|
---|
93 | ** Error return values from glXGetConfig. Success is indicated by
|
---|
94 | ** a value of 0.
|
---|
95 | */
|
---|
96 | #define GLX_BAD_SCREEN 1 /* screen # is bad */
|
---|
97 | #define GLX_BAD_ATTRIBUTE 2 /* attribute to get is bad */
|
---|
98 | #define GLX_NO_EXTENSION 3 /* no glx extension on server */
|
---|
99 | #define GLX_BAD_VISUAL 4 /* visual # not known by GLX */
|
---|
100 | #define GLX_BAD_CONTEXT 5 /* returned only by import_context EXT? */
|
---|
101 | #define GLX_BAD_VALUE 6 /* returned only by glXSwapIntervalSGI? */
|
---|
102 | #define GLX_BAD_ENUM 7 /* unused? */
|
---|
103 |
|
---|
104 | /* FBConfig attribute values */
|
---|
105 |
|
---|
106 | /*
|
---|
107 | ** Generic "don't care" value for glX ChooseFBConfig attributes (except
|
---|
108 | ** GLX_LEVEL)
|
---|
109 | */
|
---|
110 | #define GLX_DONT_CARE 0xFFFFFFFF
|
---|
111 |
|
---|
112 | /* GLX_RENDER_TYPE bits */
|
---|
113 | #define GLX_RGBA_BIT 0x00000001
|
---|
114 | #define GLX_COLOR_INDEX_BIT 0x00000002
|
---|
115 |
|
---|
116 | /* GLX_DRAWABLE_TYPE bits */
|
---|
117 | #define GLX_WINDOW_BIT 0x00000001
|
---|
118 | #define GLX_PIXMAP_BIT 0x00000002
|
---|
119 | #define GLX_PBUFFER_BIT 0x00000004
|
---|
120 |
|
---|
121 | /* GLX_CONFIG_CAVEAT attribute values */
|
---|
122 | #define GLX_NONE 0x8000
|
---|
123 | #define GLX_SLOW_CONFIG 0x8001
|
---|
124 | #define GLX_NON_CONFORMANT_CONFIG 0x800D
|
---|
125 |
|
---|
126 | /* GLX_X_VISUAL_TYPE attribute values */
|
---|
127 | #define GLX_TRUE_COLOR 0x8002
|
---|
128 | #define GLX_DIRECT_COLOR 0x8003
|
---|
129 | #define GLX_PSEUDO_COLOR 0x8004
|
---|
130 | #define GLX_STATIC_COLOR 0x8005
|
---|
131 | #define GLX_GRAY_SCALE 0x8006
|
---|
132 | #define GLX_STATIC_GRAY 0x8007
|
---|
133 |
|
---|
134 | /* GLX_TRANSPARENT_TYPE attribute values */
|
---|
135 | /* #define GLX_NONE 0x8000 */
|
---|
136 | #define GLX_TRANSPARENT_RGB 0x8008
|
---|
137 | #define GLX_TRANSPARENT_INDEX 0x8009
|
---|
138 |
|
---|
139 | /* glXCreateGLXPbuffer attributes */
|
---|
140 | #define GLX_PRESERVED_CONTENTS 0x801B
|
---|
141 | #define GLX_LARGEST_PBUFFER 0x801C
|
---|
142 | #define GLX_PBUFFER_HEIGHT 0x8040 /* New for GLX 1.3 */
|
---|
143 | #define GLX_PBUFFER_WIDTH 0x8041 /* New for GLX 1.3 */
|
---|
144 |
|
---|
145 | /* glXQueryGLXPBuffer attributes */
|
---|
146 | #define GLX_WIDTH 0x801D
|
---|
147 | #define GLX_HEIGHT 0x801E
|
---|
148 | #define GLX_EVENT_MASK 0x801F
|
---|
149 |
|
---|
150 | /* glXCreateNewContext render_type attribute values */
|
---|
151 | #define GLX_RGBA_TYPE 0x8014
|
---|
152 | #define GLX_COLOR_INDEX_TYPE 0x8015
|
---|
153 |
|
---|
154 | /* glXQueryContext attributes */
|
---|
155 | /* #define GLX_FBCONFIG_ID 0x8013 */
|
---|
156 | /* #define GLX_RENDER_TYPE 0x8011 */
|
---|
157 | #define GLX_SCREEN 0x800C
|
---|
158 |
|
---|
159 | /* glXSelectEvent event mask bits */
|
---|
160 | #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
|
---|
161 |
|
---|
162 | /* GLXPbufferClobberEvent event_type values */
|
---|
163 | #define GLX_DAMAGED 0x8020
|
---|
164 | #define GLX_SAVED 0x8021
|
---|
165 |
|
---|
166 | /* GLXPbufferClobberEvent draw_type values */
|
---|
167 | #define GLX_WINDOW 0x8022
|
---|
168 | #define GLX_PBUFFER 0x8023
|
---|
169 |
|
---|
170 | /* GLXPbufferClobberEvent buffer_mask bits */
|
---|
171 | #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
|
---|
172 | #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
|
---|
173 | #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
|
---|
174 | #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
|
---|
175 | #define GLX_AUX_BUFFERS_BIT 0x00000010
|
---|
176 | #define GLX_DEPTH_BUFFER_BIT 0x00000020
|
---|
177 | #define GLX_STENCIL_BUFFER_BIT 0x00000040
|
---|
178 | #define GLX_ACCUM_BUFFER_BIT 0x00000080
|
---|
179 |
|
---|
180 | /*
|
---|
181 | ** Extension return values from glXGetConfig. These are also
|
---|
182 | ** accepted as parameter values for glXChooseVisual.
|
---|
183 | */
|
---|
184 |
|
---|
185 | #define GLX_X_VISUAL_TYPE_EXT 0x22 /* visual_info extension type */
|
---|
186 | #define GLX_TRANSPARENT_TYPE_EXT 0x23 /* visual_info extension */
|
---|
187 | #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 /* visual_info extension */
|
---|
188 | #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 /* visual_info extension */
|
---|
189 | #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 /* visual_info extension */
|
---|
190 | #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 /* visual_info extension */
|
---|
191 | #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 /* visual_info extension */
|
---|
192 |
|
---|
193 | /* Property values for visual_type */
|
---|
194 | #define GLX_TRUE_COLOR_EXT 0x8002
|
---|
195 | #define GLX_DIRECT_COLOR_EXT 0x8003
|
---|
196 | #define GLX_PSEUDO_COLOR_EXT 0x8004
|
---|
197 | #define GLX_STATIC_COLOR_EXT 0x8005
|
---|
198 | #define GLX_GRAY_SCALE_EXT 0x8006
|
---|
199 | #define GLX_STATIC_GRAY_EXT 0x8007
|
---|
200 |
|
---|
201 | /* Property values for transparent pixel */
|
---|
202 | #define GLX_NONE_EXT 0x8000
|
---|
203 | #define GLX_TRANSPARENT_RGB_EXT 0x8008
|
---|
204 | #define GLX_TRANSPARENT_INDEX_EXT 0x8009
|
---|
205 |
|
---|
206 | /* Property values for visual_rating */
|
---|
207 | #define GLX_VISUAL_CAVEAT_EXT 0x20 /* visual_rating extension type */
|
---|
208 | #define GLX_SLOW_VISUAL_EXT 0x8001
|
---|
209 | #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
|
---|
210 |
|
---|
211 | /* Property values for swap method (GLX_OML_swap_method) */
|
---|
212 | #define GLX_SWAP_METHOD_OML 0x8060
|
---|
213 | #define GLX_SWAP_EXCHANGE_OML 0x8061
|
---|
214 | #define GLX_SWAP_COPY_OML 0x8062
|
---|
215 | #define GLX_SWAP_UNDEFINED_OML 0x8063
|
---|
216 |
|
---|
217 | /* Property values for multi-sampling */
|
---|
218 | #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 /* visuals grouped by select priority */
|
---|
219 |
|
---|
220 | /*
|
---|
221 | ** Names for attributes to glXGetClientString.
|
---|
222 | */
|
---|
223 | #define GLX_VENDOR 0x1
|
---|
224 | #define GLX_VERSION 0x2
|
---|
225 | #define GLX_EXTENSIONS 0x3
|
---|
226 |
|
---|
227 | /*
|
---|
228 | ** Names for attributes to glXQueryContextInfoEXT.
|
---|
229 | */
|
---|
230 | #define GLX_SHARE_CONTEXT_EXT 0x800A /* id of share context */
|
---|
231 | #define GLX_VISUAL_ID_EXT 0x800B /* id of context's visual */
|
---|
232 | #define GLX_SCREEN_EXT 0x800C /* screen number */
|
---|
233 |
|
---|
234 | /*
|
---|
235 | ** GLX_EXT_texture_from_pixmap
|
---|
236 | */
|
---|
237 | #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
|
---|
238 | #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
|
---|
239 | #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
|
---|
240 | #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
|
---|
241 | #define GLX_Y_INVERTED_EXT 0x20D4
|
---|
242 |
|
---|
243 | #define GLX_TEXTURE_FORMAT_EXT 0x20D5
|
---|
244 | #define GLX_TEXTURE_TARGET_EXT 0x20D6
|
---|
245 | #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
|
---|
246 |
|
---|
247 | #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
|
---|
248 | #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
|
---|
249 | #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
|
---|
250 |
|
---|
251 | #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
|
---|
252 | #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
|
---|
253 | #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
|
---|
254 |
|
---|
255 | #define GLX_TEXTURE_1D_EXT 0x20DB
|
---|
256 | #define GLX_TEXTURE_2D_EXT 0x20DC
|
---|
257 | #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
|
---|
258 |
|
---|
259 | #define GLX_FRONT_LEFT_EXT 0x20DE
|
---|
260 | #define GLX_FRONT_RIGHT_EXT 0x20DF
|
---|
261 | #define GLX_BACK_LEFT_EXT 0x20E0
|
---|
262 | #define GLX_BACK_RIGHT_EXT 0x20E1
|
---|
263 | #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
|
---|
264 | #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
|
---|
265 | #define GLX_AUX0_EXT 0x20E2
|
---|
266 | #define GLX_AUX1_EXT 0x20E3
|
---|
267 | #define GLX_AUX2_EXT 0x20E4
|
---|
268 | #define GLX_AUX3_EXT 0x20E5
|
---|
269 | #define GLX_AUX4_EXT 0x20E6
|
---|
270 | #define GLX_AUX5_EXT 0x20E7
|
---|
271 | #define GLX_AUX6_EXT 0x20E8
|
---|
272 | #define GLX_AUX7_EXT 0x20E9
|
---|
273 | #define GLX_AUX8_EXT 0x20EA
|
---|
274 | #define GLX_AUX9_EXT 0x20EB
|
---|
275 |
|
---|
276 | /*
|
---|
277 | * GLX 1.4 and later:
|
---|
278 | */
|
---|
279 | #define GLX_SAMPLE_BUFFERS_SGIS 100000
|
---|
280 | #define GLX_SAMPLES_SGIS 100001
|
---|
281 |
|
---|
282 | #ifdef __cplusplus
|
---|
283 | }
|
---|
284 | #endif
|
---|
285 |
|
---|
286 | #endif /* !__GLX_glxtokens_h__ */
|
---|