ntdll: Fix compilation on systems that don't support nameless unions.
[wine] / include / wine / wgl.h
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 /* 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
33
34 #define HPBUFFERARB void *
35
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
77
78 #define WGL_NO_ACCELERATION_ARB                 0x2025
79 #define WGL_GENERIC_ACCELERATION_ARB            0x2026
80 #define WGL_FULL_ACCELERATION_ARB               0x2027
81
82 #define WGL_PBUFFER_WIDTH_ARB                   0x2034
83 #define WGL_PBUFFER_HEIGHT_ARB                  0x2035
84 #define WGL_PBUFFER_LOST_ARB                    0x2036
85 #define WGL_DRAW_TO_PBUFFER_ARB                 0x202D
86 #define WGL_MAX_PBUFFER_PIXELS_ARB              0x202E
87 #define WGL_MAX_PBUFFER_WIDTH_ARB               0x202F
88 #define WGL_MAX_PBUFFER_HEIGHT_ARB              0x2030
89 #define WGL_PBUFFER_LARGEST_ARB                 0x2033
90
91 #define WGL_TYPE_RGBA_ARB                       0x202B
92 #define WGL_TYPE_COLORINDEX_ARB                 0x202C
93
94 #define WGL_SAMPLE_BUFFERS_ARB                  0x2041
95 #define WGL_SAMPLES_ARB                         0x2042
96
97 /**
98  * WGL_render_texture 
99  */
100 /** GetPixelFormat/ChoosePixelFormat */
101 #define WGL_BIND_TO_TEXTURE_RGB_ARB             0x2070
102 #define WGL_BIND_TO_TEXTURE_RGBA_ARB            0x2071
103 /** CreatePbuffer / QueryPbuffer */
104 #define WGL_TEXTURE_FORMAT_ARB                  0x2072
105 #define WGL_TEXTURE_TARGET_ARB                  0x2073
106 #define WGL_MIPMAP_TEXTURE_ARB                  0x2074
107 /** CreatePbuffer / QueryPbuffer */
108 #define WGL_TEXTURE_RGB_ARB                     0x2075
109 #define WGL_TEXTURE_RGBA_ARB                    0x2076
110 #define WGL_NO_TEXTURE_ARB                      0x2077
111 /** CreatePbuffer / QueryPbuffer */
112 #define WGL_TEXTURE_CUBE_MAP_ARB                0x2078
113 #define WGL_TEXTURE_1D_ARB                      0x2079
114 #define WGL_TEXTURE_2D_ARB                      0x207A
115 #define WGL_NO_TEXTURE_ARB                      0x2077
116 /** SetPbufferAttribARB/QueryPbufferARB parameters */
117 #define WGL_MIPMAP_LEVEL_ARB                    0x207B
118 #define WGL_CUBE_MAP_FACE_ARB                   0x207C
119 /** SetPbufferAttribARB/QueryPbufferARB attribs */
120 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB     0x207D
121 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB     0x207E
122 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB     0x207F
123 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB     0x2080
124 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB     0x2081 
125 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB     0x2082
126 /** BindTexImageARB/ReleaseTexImageARB */
127 #define WGL_FRONT_LEFT_ARB                  0x2083
128 #define WGL_FRONT_RIGHT_ARB                 0x2084
129 #define WGL_BACK_LEFT_ARB                   0x2085
130 #define WGL_BACK_RIGHT_ARB                  0x2086
131 #define WGL_AUX0_ARB                        0x2087 
132 #define WGL_AUX1_ARB                        0x2088 
133 #define WGL_AUX2_ARB                        0x2089 
134 #define WGL_AUX3_ARB                        0x208A 
135 #define WGL_AUX4_ARB                        0x208B 
136 #define WGL_AUX5_ARB                        0x208C 
137 #define WGL_AUX6_ARB                        0x208D
138 #define WGL_AUX7_ARB                        0x208E 
139 #define WGL_AUX8_ARB                        0x208F 
140 #define WGL_AUX9_ARB                        0x2090
141
142 /** 
143  * WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
144  */
145 #define WGL_TYPE_RGBA_FLOAT_ATI             0x21A0
146 #define GL_RGBA_FLOAT_MODE_ATI              0x8820
147 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI  0x8835
148 #define GL_CLAMP_VERTEX_COLOR_ARB           0x891A
149 #define GL_CLAMP_FRAGMENT_COLOR_ARB         0x891B
150 #define GL_CLAMP_READ_COLOR_ARB             0x891C
151 /** GLX_ATI_pixel_format_float */
152 #define GLX_RGBA_FLOAT_ATI_BIT              0x00000100
153 /** GLX_ARB_pixel_format_float */
154 #define GLX_RGBA_FLOAT_BIT                  0x00000004
155 #define GLX_RGBA_FLOAT_TYPE                 0x20B9 
156 /** GLX_ATI_render_texture */
157 #define GLX_BIND_TO_TEXTURE_RGB_ATI         0x9800
158 #define GLX_BIND_TO_TEXTURE_RGBA_ATI        0x9801
159 #define GLX_TEXTURE_FORMAT_ATI              0x9802
160 #define GLX_TEXTURE_TARGET_ATI              0x9803
161 #define GLX_MIPMAP_TEXTURE_ATI              0x9804
162 #define GLX_TEXTURE_RGB_ATI                 0x9805
163 #define GLX_TEXTURE_RGBA_ATI                0x9806
164 #define GLX_NO_TEXTURE_ATI                  0x9807
165 #define GLX_TEXTURE_CUBE_MAP_ATI            0x9808
166 #define GLX_TEXTURE_1D_ATI                  0x9809
167 #define GLX_TEXTURE_2D_ATI                  0x980A
168 #define GLX_MIPMAP_LEVEL_ATI                0x980B
169 #define GLX_CUBE_MAP_FACE_ATI               0x980C
170 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
171 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
172 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
173 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
174 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
175 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
176 #define GLX_FRONT_LEFT_ATI                  0x9813
177 #define GLX_FRONT_RIGHT_ATI                 0x9814
178 #define GLX_BACK_LEFT_ATI                   0x9815
179 #define GLX_BACK_RIGHT_ATI                  0x9816
180 #define GLX_AUX0_ATI                        0x9817
181 #define GLX_AUX1_ATI                        0x9818
182 #define GLX_AUX2_ATI                        0x9819
183 #define GLX_AUX3_ATI                        0x981A
184 #define GLX_AUX4_ATI                        0x981B
185 #define GLX_AUX5_ATI                        0x981C
186 #define GLX_AUX6_ATI                        0x981D
187 #define GLX_AUX7_ATI                        0x981E
188 #define GLX_AUX8_ATI                        0x981F
189 #define GLX_AUX9_ATI                        0x9820
190 #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI   0x9821
191 #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI   0x9822