gdi32: ntmCellHeight and ntmAvgWidth should be in font units.
[wine/multimedia.git] / include / wine / wgl.h
blob7a99de27598e600240e377ac31c1e0ca59083ec6
1 /*
2 * Wine WGL extension + ATI GLX extension defines
4 * Copyright (c) 2004 Lionel Ulmer
5 * Copyright (c) 2005 Alex Woods
6 * Copyright (c) 2005 Raphael Junqueira
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.
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.
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
23 /* For compatibility with old Mesa headers */
24 #ifndef GLX_SAMPLE_BUFFERS_ARB
25 # define GLX_SAMPLE_BUFFERS_ARB 100000
26 #endif
27 #ifndef GLX_SAMPLES_ARB
28 # define GLX_SAMPLES_ARB 100001
29 #endif
30 #ifndef GL_TEXTURE_CUBE_MAP
31 # define GL_TEXTURE_CUBE_MAP 0x8513
32 #endif
34 #define HPBUFFERARB void *
36 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
37 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
38 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
39 #define WGL_ACCELERATION_ARB 0x2003
40 #define WGL_NEED_PALETTE_ARB 0x2004
41 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
42 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
43 #define WGL_SWAP_METHOD_ARB 0x2007
44 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
45 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
46 #define WGL_TRANSPARENT_ARB 0x200A
47 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
48 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
49 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
50 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
51 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
52 #define WGL_SHARE_DEPTH_ARB 0x200C
53 #define WGL_SHARE_STENCIL_ARB 0x200D
54 #define WGL_SHARE_ACCUM_ARB 0x200E
55 #define WGL_SUPPORT_GDI_ARB 0x200F
56 #define WGL_SUPPORT_OPENGL_ARB 0x2010
57 #define WGL_DOUBLE_BUFFER_ARB 0x2011
58 #define WGL_STEREO_ARB 0x2012
59 #define WGL_PIXEL_TYPE_ARB 0x2013
60 #define WGL_COLOR_BITS_ARB 0x2014
61 #define WGL_RED_BITS_ARB 0x2015
62 #define WGL_RED_SHIFT_ARB 0x2016
63 #define WGL_GREEN_BITS_ARB 0x2017
64 #define WGL_GREEN_SHIFT_ARB 0x2018
65 #define WGL_BLUE_BITS_ARB 0x2019
66 #define WGL_BLUE_SHIFT_ARB 0x201A
67 #define WGL_ALPHA_BITS_ARB 0x201B
68 #define WGL_ALPHA_SHIFT_ARB 0x201C
69 #define WGL_ACCUM_BITS_ARB 0x201D
70 #define WGL_ACCUM_RED_BITS_ARB 0x201E
71 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
72 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
73 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
74 #define WGL_DEPTH_BITS_ARB 0x2022
75 #define WGL_STENCIL_BITS_ARB 0x2023
76 #define WGL_AUX_BUFFERS_ARB 0x2024
78 #define WGL_NO_ACCELERATION_ARB 0x2025
79 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
80 #define WGL_FULL_ACCELERATION_ARB 0x2027
82 #define WGL_SWAP_EXCHANGE_ARB 0x2028
83 #define WGL_SWAP_COPY_ARB 0x2029
84 #define WGL_SWAP_UNDEFINED_ARB 0x202A
86 #define WGL_PBUFFER_WIDTH_ARB 0x2034
87 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
88 #define WGL_PBUFFER_LOST_ARB 0x2036
89 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
90 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
91 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
92 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
93 #define WGL_PBUFFER_LARGEST_ARB 0x2033
95 #define WGL_TYPE_RGBA_ARB 0x202B
96 #define WGL_TYPE_COLORINDEX_ARB 0x202C
98 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
99 #define WGL_SAMPLES_ARB 0x2042
102 * WGL_render_texture
104 /** GetPixelFormat/ChoosePixelFormat */
105 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
106 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
107 /** CreatePbuffer / QueryPbuffer */
108 #define WGL_TEXTURE_FORMAT_ARB 0x2072
109 #define WGL_TEXTURE_TARGET_ARB 0x2073
110 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
111 /** CreatePbuffer / QueryPbuffer */
112 #define WGL_TEXTURE_RGB_ARB 0x2075
113 #define WGL_TEXTURE_RGBA_ARB 0x2076
114 #define WGL_NO_TEXTURE_ARB 0x2077
115 /** CreatePbuffer / QueryPbuffer */
116 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
117 #define WGL_TEXTURE_1D_ARB 0x2079
118 #define WGL_TEXTURE_2D_ARB 0x207A
119 #define WGL_NO_TEXTURE_ARB 0x2077
120 /** SetPbufferAttribARB/QueryPbufferARB parameters */
121 #define WGL_MIPMAP_LEVEL_ARB 0x207B
122 #define WGL_CUBE_MAP_FACE_ARB 0x207C
123 /** SetPbufferAttribARB/QueryPbufferARB attribs */
124 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
125 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
126 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
127 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
128 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
129 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
130 /** BindTexImageARB/ReleaseTexImageARB */
131 #define WGL_FRONT_LEFT_ARB 0x2083
132 #define WGL_FRONT_RIGHT_ARB 0x2084
133 #define WGL_BACK_LEFT_ARB 0x2085
134 #define WGL_BACK_RIGHT_ARB 0x2086
135 #define WGL_AUX0_ARB 0x2087
136 #define WGL_AUX1_ARB 0x2088
137 #define WGL_AUX2_ARB 0x2089
138 #define WGL_AUX3_ARB 0x208A
139 #define WGL_AUX4_ARB 0x208B
140 #define WGL_AUX5_ARB 0x208C
141 #define WGL_AUX6_ARB 0x208D
142 #define WGL_AUX7_ARB 0x208E
143 #define WGL_AUX8_ARB 0x208F
144 #define WGL_AUX9_ARB 0x2090
146 /** WGL_NV_render_texture_rectangle */
147 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
148 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
149 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
150 /** WGL_NV_render_depth_texture */
151 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
152 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
153 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
154 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
155 #define WGL_DEPTH_COMPONENT_NV 0x20A7
156 /** WGL_NV_float_buffer */
157 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
158 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
159 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
160 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
161 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
162 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
163 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
164 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
165 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
166 /** GL_NV_float_buffer */
167 #define GL_FLOAT_R_NV 0x8880
168 #define GL_FLOAT_RG_NV 0x8881
169 #define GL_FLOAT_RGB_NV 0x8882
170 #define GL_FLOAT_RGBA_NV 0x8883
171 #define GL_FLOAT_R16_NV 0x8884
172 #define GL_FLOAT_R32_NV 0x8885
173 #define GL_FLOAT_RG16_NV 0x8886
174 #define GL_FLOAT_RG32_NV 0x8887
175 #define GL_FLOAT_RGB16_NV 0x8888
176 #define GL_FLOAT_RGB32_NV 0x8889
177 #define GL_FLOAT_RGBA16_NV 0x888A
178 #define GL_FLOAT_RGBA32_NV 0x888B
179 #define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C
180 #define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
181 #define GL_FLOAT_RGBA_MODE_NV 0x888E
183 /** WGL_EXT_framebuffer_sRGB */
184 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
185 #ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
186 # define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
187 #endif
189 /* WGL_EXT_pixel_format_packed_float */
190 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
191 #ifndef GLX_EXT_fbconfig_packed_float
192 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
193 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
194 #endif
196 /** WGL_ARB_create_context */
197 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
198 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
199 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
200 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
201 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
202 #define WGL_CONTEXT_FLAGS_ARB 0x2094
203 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
204 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
205 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
206 #define ERROR_INVALID_VERSION_ARB 0x2095
207 #define ERROR_INVALID_PROFILE_ARB 0x2096
208 #ifndef GLX_ARB_create_context
209 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
210 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
211 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
212 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
213 #define GLX_CONTEXT_FLAGS_ARB 0x2094
214 #endif
215 #ifndef GLX_ARB_create_context_profile
216 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
217 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
218 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
219 #endif
221 /**
222 * WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
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