1 | /*
|
---|
2 | * Wine WGL extension + ATI GLX extension defines
|
---|
3 | *
|
---|
4 | * Copyright (c) 2004 Lionel Ulmer
|
---|
5 | * Copyright (c) 2005 Alex Woods
|
---|
6 | * Copyright (c) 2005 Raphael Junqueira
|
---|
7 | *
|
---|
8 | * This library is free software; you can redistribute it and/or
|
---|
9 | * modify it under the terms of the GNU Lesser General Public
|
---|
10 | * License as published by the Free Software Foundation; either
|
---|
11 | * version 2.1 of the License, or (at your option) any later version.
|
---|
12 | *
|
---|
13 | * This library is distributed in the hope that it will be useful,
|
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
16 | * Lesser General Public License for more details.
|
---|
17 | *
|
---|
18 | * You should have received a copy of the GNU Lesser General Public
|
---|
19 | * License along with this library; if not, write to the Free Software
|
---|
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
21 | */
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
25 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
26 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
27 | * a choice of LGPL license versions is made available with the language indicating
|
---|
28 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
29 | * of the LGPL is applied is otherwise unspecified.
|
---|
30 | */
|
---|
31 |
|
---|
32 | /* For compatibility with old Mesa headers */
|
---|
33 | #ifndef GLX_SAMPLE_BUFFERS_ARB
|
---|
34 | # define GLX_SAMPLE_BUFFERS_ARB 100000
|
---|
35 | #endif
|
---|
36 | #ifndef GLX_SAMPLES_ARB
|
---|
37 | # define GLX_SAMPLES_ARB 100001
|
---|
38 | #endif
|
---|
39 | #ifndef GL_TEXTURE_CUBE_MAP
|
---|
40 | # define GL_TEXTURE_CUBE_MAP 0x8513
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #define HPBUFFERARB void *
|
---|
44 |
|
---|
45 | #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
|
---|
46 | #define WGL_DRAW_TO_WINDOW_ARB 0x2001
|
---|
47 | #define WGL_DRAW_TO_BITMAP_ARB 0x2002
|
---|
48 | #define WGL_ACCELERATION_ARB 0x2003
|
---|
49 | #define WGL_NEED_PALETTE_ARB 0x2004
|
---|
50 | #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
|
---|
51 | #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
|
---|
52 | #define WGL_SWAP_METHOD_ARB 0x2007
|
---|
53 | #define WGL_NUMBER_OVERLAYS_ARB 0x2008
|
---|
54 | #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
|
---|
55 | #define WGL_TRANSPARENT_ARB 0x200A
|
---|
56 | #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
|
---|
57 | #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
|
---|
58 | #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
|
---|
59 | #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
|
---|
60 | #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
|
---|
61 | #define WGL_SHARE_DEPTH_ARB 0x200C
|
---|
62 | #define WGL_SHARE_STENCIL_ARB 0x200D
|
---|
63 | #define WGL_SHARE_ACCUM_ARB 0x200E
|
---|
64 | #define WGL_SUPPORT_GDI_ARB 0x200F
|
---|
65 | #define WGL_SUPPORT_OPENGL_ARB 0x2010
|
---|
66 | #define WGL_DOUBLE_BUFFER_ARB 0x2011
|
---|
67 | #define WGL_STEREO_ARB 0x2012
|
---|
68 | #define WGL_PIXEL_TYPE_ARB 0x2013
|
---|
69 | #define WGL_COLOR_BITS_ARB 0x2014
|
---|
70 | #define WGL_RED_BITS_ARB 0x2015
|
---|
71 | #define WGL_RED_SHIFT_ARB 0x2016
|
---|
72 | #define WGL_GREEN_BITS_ARB 0x2017
|
---|
73 | #define WGL_GREEN_SHIFT_ARB 0x2018
|
---|
74 | #define WGL_BLUE_BITS_ARB 0x2019
|
---|
75 | #define WGL_BLUE_SHIFT_ARB 0x201A
|
---|
76 | #define WGL_ALPHA_BITS_ARB 0x201B
|
---|
77 | #define WGL_ALPHA_SHIFT_ARB 0x201C
|
---|
78 | #define WGL_ACCUM_BITS_ARB 0x201D
|
---|
79 | #define WGL_ACCUM_RED_BITS_ARB 0x201E
|
---|
80 | #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
|
---|
81 | #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
|
---|
82 | #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
|
---|
83 | #define WGL_DEPTH_BITS_ARB 0x2022
|
---|
84 | #define WGL_STENCIL_BITS_ARB 0x2023
|
---|
85 | #define WGL_AUX_BUFFERS_ARB 0x2024
|
---|
86 |
|
---|
87 | #define WGL_NO_ACCELERATION_ARB 0x2025
|
---|
88 | #define WGL_GENERIC_ACCELERATION_ARB 0x2026
|
---|
89 | #define WGL_FULL_ACCELERATION_ARB 0x2027
|
---|
90 |
|
---|
91 | #define WGL_SWAP_EXCHANGE_ARB 0x2028
|
---|
92 | #define WGL_SWAP_COPY_ARB 0x2029
|
---|
93 | #define WGL_SWAP_UNDEFINED_ARB 0x202A
|
---|
94 |
|
---|
95 | #define WGL_PBUFFER_WIDTH_ARB 0x2034
|
---|
96 | #define WGL_PBUFFER_HEIGHT_ARB 0x2035
|
---|
97 | #define WGL_PBUFFER_LOST_ARB 0x2036
|
---|
98 | #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
|
---|
99 | #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
|
---|
100 | #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
|
---|
101 | #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
|
---|
102 | #define WGL_PBUFFER_LARGEST_ARB 0x2033
|
---|
103 |
|
---|
104 | #define WGL_TYPE_RGBA_ARB 0x202B
|
---|
105 | #define WGL_TYPE_COLORINDEX_ARB 0x202C
|
---|
106 |
|
---|
107 | #define WGL_SAMPLE_BUFFERS_ARB 0x2041
|
---|
108 | #define WGL_SAMPLES_ARB 0x2042
|
---|
109 |
|
---|
110 | /**
|
---|
111 | * WGL_render_texture
|
---|
112 | */
|
---|
113 | /** GetPixelFormat/ChoosePixelFormat */
|
---|
114 | #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
|
---|
115 | #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
|
---|
116 | /** CreatePbuffer / QueryPbuffer */
|
---|
117 | #define WGL_TEXTURE_FORMAT_ARB 0x2072
|
---|
118 | #define WGL_TEXTURE_TARGET_ARB 0x2073
|
---|
119 | #define WGL_MIPMAP_TEXTURE_ARB 0x2074
|
---|
120 | /** CreatePbuffer / QueryPbuffer */
|
---|
121 | #define WGL_TEXTURE_RGB_ARB 0x2075
|
---|
122 | #define WGL_TEXTURE_RGBA_ARB 0x2076
|
---|
123 | #define WGL_NO_TEXTURE_ARB 0x2077
|
---|
124 | /** CreatePbuffer / QueryPbuffer */
|
---|
125 | #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
|
---|
126 | #define WGL_TEXTURE_1D_ARB 0x2079
|
---|
127 | #define WGL_TEXTURE_2D_ARB 0x207A
|
---|
128 | #define WGL_NO_TEXTURE_ARB 0x2077
|
---|
129 | /** SetPbufferAttribARB/QueryPbufferARB parameters */
|
---|
130 | #define WGL_MIPMAP_LEVEL_ARB 0x207B
|
---|
131 | #define WGL_CUBE_MAP_FACE_ARB 0x207C
|
---|
132 | /** SetPbufferAttribARB/QueryPbufferARB attribs */
|
---|
133 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
|
---|
134 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
|
---|
135 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
|
---|
136 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
|
---|
137 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
|
---|
138 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
|
---|
139 | /** BindTexImageARB/ReleaseTexImageARB */
|
---|
140 | #define WGL_FRONT_LEFT_ARB 0x2083
|
---|
141 | #define WGL_FRONT_RIGHT_ARB 0x2084
|
---|
142 | #define WGL_BACK_LEFT_ARB 0x2085
|
---|
143 | #define WGL_BACK_RIGHT_ARB 0x2086
|
---|
144 | #define WGL_AUX0_ARB 0x2087
|
---|
145 | #define WGL_AUX1_ARB 0x2088
|
---|
146 | #define WGL_AUX2_ARB 0x2089
|
---|
147 | #define WGL_AUX3_ARB 0x208A
|
---|
148 | #define WGL_AUX4_ARB 0x208B
|
---|
149 | #define WGL_AUX5_ARB 0x208C
|
---|
150 | #define WGL_AUX6_ARB 0x208D
|
---|
151 | #define WGL_AUX7_ARB 0x208E
|
---|
152 | #define WGL_AUX8_ARB 0x208F
|
---|
153 | #define WGL_AUX9_ARB 0x2090
|
---|
154 |
|
---|
155 | /** WGL_NV_render_texture_rectangle */
|
---|
156 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
|
---|
157 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
|
---|
158 | #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
|
---|
159 | /** WGL_NV_render_depth_texture */
|
---|
160 | #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
|
---|
161 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
|
---|
162 | #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
|
---|
163 | #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
|
---|
164 | #define WGL_DEPTH_COMPONENT_NV 0x20A7
|
---|
165 | /** WGL_NV_float_buffer */
|
---|
166 | #define WGL_FLOAT_COMPONENTS_NV 0x20B0
|
---|
167 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
|
---|
168 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
|
---|
169 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
|
---|
170 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
|
---|
171 | #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
|
---|
172 | #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
|
---|
173 | #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
|
---|
174 | #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
|
---|
175 | /** GL_NV_float_buffer */
|
---|
176 | #define GL_FLOAT_R_NV 0x8880
|
---|
177 | #define GL_FLOAT_RG_NV 0x8881
|
---|
178 | #define GL_FLOAT_RGB_NV 0x8882
|
---|
179 | #define GL_FLOAT_RGBA_NV 0x8883
|
---|
180 | #define GL_FLOAT_R16_NV 0x8884
|
---|
181 | #define GL_FLOAT_R32_NV 0x8885
|
---|
182 | #define GL_FLOAT_RG16_NV 0x8886
|
---|
183 | #define GL_FLOAT_RG32_NV 0x8887
|
---|
184 | #define GL_FLOAT_RGB16_NV 0x8888
|
---|
185 | #define GL_FLOAT_RGB32_NV 0x8889
|
---|
186 | #define GL_FLOAT_RGBA16_NV 0x888A
|
---|
187 | #define GL_FLOAT_RGBA32_NV 0x888B
|
---|
188 | #define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C
|
---|
189 | #define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
|
---|
190 | #define GL_FLOAT_RGBA_MODE_NV 0x888E
|
---|
191 |
|
---|
192 | /** WGL_EXT_framebuffer_sRGB */
|
---|
193 | #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
|
---|
194 | #ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
|
---|
195 | # define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
|
---|
196 | #endif
|
---|
197 |
|
---|
198 | /* WGL_EXT_pixel_format_packed_float */
|
---|
199 | #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
|
---|
200 | #ifndef GLX_EXT_fbconfig_packed_float
|
---|
201 | #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
|
---|
202 | #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
|
---|
203 | #endif
|
---|
204 |
|
---|
205 | /** WGL_ARB_create_context */
|
---|
206 | #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
|
---|
207 | #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
|
---|
208 | #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
|
---|
209 | #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
|
---|
210 | #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
|
---|
211 | #define WGL_CONTEXT_FLAGS_ARB 0x2094
|
---|
212 | #define ERROR_INVALID_VERSION_ARB 0x2095
|
---|
213 | #ifndef GLX_ARB_create_context
|
---|
214 | #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
|
---|
215 | #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
|
---|
216 | #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
|
---|
217 | #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
|
---|
218 | #define GLX_CONTEXT_FLAGS_ARB 0x2094
|
---|
219 | #endif
|
---|
220 |
|
---|
221 | /**
|
---|
222 | * WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
|
---|
223 | */
|
---|
224 | #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
|
---|
225 | #define GL_RGBA_FLOAT_MODE_ATI 0x8820
|
---|
226 | #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
|
---|
227 | #define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
|
---|
228 | #define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
|
---|
229 | #define GL_CLAMP_READ_COLOR_ARB 0x891C
|
---|
230 | /** GLX_ATI_pixel_format_float */
|
---|
231 | #define GLX_RGBA_FLOAT_ATI_BIT 0x00000100
|
---|
232 | /** GLX_ARB_pixel_format_float */
|
---|
233 | #define GLX_RGBA_FLOAT_BIT 0x00000004
|
---|
234 | #define GLX_RGBA_FLOAT_TYPE 0x20B9
|
---|
235 | /** GLX_ATI_render_texture */
|
---|
236 | #define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
|
---|
237 | #define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
|
---|
238 | #define GLX_TEXTURE_FORMAT_ATI 0x9802
|
---|
239 | #define GLX_TEXTURE_TARGET_ATI 0x9803
|
---|
240 | #define GLX_MIPMAP_TEXTURE_ATI 0x9804
|
---|
241 | #define GLX_TEXTURE_RGB_ATI 0x9805
|
---|
242 | #define GLX_TEXTURE_RGBA_ATI 0x9806
|
---|
243 | #define GLX_NO_TEXTURE_ATI 0x9807
|
---|
244 | #define GLX_TEXTURE_CUBE_MAP_ATI 0x9808
|
---|
245 | #define GLX_TEXTURE_1D_ATI 0x9809
|
---|
246 | #define GLX_TEXTURE_2D_ATI 0x980A
|
---|
247 | #define GLX_MIPMAP_LEVEL_ATI 0x980B
|
---|
248 | #define GLX_CUBE_MAP_FACE_ATI 0x980C
|
---|
249 | #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
|
---|
250 | #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
|
---|
251 | #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
|
---|
252 | #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
|
---|
253 | #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
|
---|
254 | #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
|
---|
255 | #define GLX_FRONT_LEFT_ATI 0x9813
|
---|
256 | #define GLX_FRONT_RIGHT_ATI 0x9814
|
---|
257 | #define GLX_BACK_LEFT_ATI 0x9815
|
---|
258 | #define GLX_BACK_RIGHT_ATI 0x9816
|
---|
259 | #define GLX_AUX0_ATI 0x9817
|
---|
260 | #define GLX_AUX1_ATI 0x9818
|
---|
261 | #define GLX_AUX2_ATI 0x9819
|
---|
262 | #define GLX_AUX3_ATI 0x981A
|
---|
263 | #define GLX_AUX4_ATI 0x981B
|
---|
264 | #define GLX_AUX5_ATI 0x981C
|
---|
265 | #define GLX_AUX6_ATI 0x981D
|
---|
266 | #define GLX_AUX7_ATI 0x981E
|
---|
267 | #define GLX_AUX8_ATI 0x981F
|
---|
268 | #define GLX_AUX9_ATI 0x9820
|
---|
269 | #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821
|
---|
270 | #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822
|
---|
271 | /** GLX_NV_float_buffer */
|
---|
272 | #define GLX_FLOAT_COMPONENTS_NV 0x20B0
|
---|