wineandroid: Create the top-level view on desktop window creation.
[wine.git] / dlls / wined3d / wined3d_gl.h
blob3806869fd425a269847facb25252ad5f9d0ee6b8
1 /*
2 * Direct3D wine OpenGL include file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2004 Jason Edmeades
6 * Raphael Junqueira
7 * Copyright 2007 Roderick Colenbrander
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #ifndef __WINE_WINED3D_GL_H
25 #define __WINE_WINED3D_GL_H
27 #include "wine/wgl.h"
28 #include "wine/wglext.h"
30 #define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837 /* not in the gl spec */
32 void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
33 void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
35 /* OpenGL extensions. */
36 enum wined3d_gl_extension
38 WINED3D_GL_EXT_NONE,
40 /* APPLE */
41 APPLE_FENCE,
42 APPLE_FLOAT_PIXELS,
43 APPLE_FLUSH_BUFFER_RANGE,
44 APPLE_YCBCR_422,
45 /* ARB */
46 ARB_BLEND_FUNC_EXTENDED,
47 ARB_CLEAR_BUFFER_OBJECT,
48 ARB_CLEAR_TEXTURE,
49 ARB_CLIP_CONTROL,
50 ARB_COLOR_BUFFER_FLOAT,
51 ARB_COMPUTE_SHADER,
52 ARB_COPY_BUFFER,
53 ARB_DEBUG_OUTPUT,
54 ARB_DEPTH_BUFFER_FLOAT,
55 ARB_DEPTH_TEXTURE,
56 ARB_DERIVATIVE_CONTROL,
57 ARB_DRAW_BUFFERS,
58 ARB_DRAW_ELEMENTS_BASE_VERTEX,
59 ARB_DRAW_INSTANCED,
60 ARB_ES2_COMPATIBILITY,
61 ARB_ES3_COMPATIBILITY,
62 ARB_EXPLICIT_ATTRIB_LOCATION,
63 ARB_FRAGMENT_COORD_CONVENTIONS,
64 ARB_FRAGMENT_LAYER_VIEWPORT,
65 ARB_FRAGMENT_PROGRAM,
66 ARB_FRAGMENT_SHADER,
67 ARB_FRAMEBUFFER_OBJECT,
68 ARB_FRAMEBUFFER_SRGB,
69 ARB_GEOMETRY_SHADER4,
70 ARB_GPU_SHADER5,
71 ARB_HALF_FLOAT_PIXEL,
72 ARB_HALF_FLOAT_VERTEX,
73 ARB_INSTANCED_ARRAYS,
74 ARB_INTERNALFORMAT_QUERY,
75 ARB_INTERNALFORMAT_QUERY2,
76 ARB_MAP_BUFFER_ALIGNMENT,
77 ARB_MAP_BUFFER_RANGE,
78 ARB_MULTISAMPLE,
79 ARB_MULTITEXTURE,
80 ARB_OCCLUSION_QUERY,
81 ARB_PIXEL_BUFFER_OBJECT,
82 ARB_POINT_PARAMETERS,
83 ARB_POINT_SPRITE,
84 ARB_PROVOKING_VERTEX,
85 ARB_SAMPLER_OBJECTS,
86 ARB_SEAMLESS_CUBE_MAP,
87 ARB_SHADER_ATOMIC_COUNTERS,
88 ARB_SHADER_BIT_ENCODING,
89 ARB_SHADER_IMAGE_LOAD_STORE,
90 ARB_SHADER_IMAGE_SIZE,
91 ARB_SHADER_STORAGE_BUFFER_OBJECT,
92 ARB_SHADER_TEXTURE_LOD,
93 ARB_SHADING_LANGUAGE_100,
94 ARB_SHADING_LANGUAGE_420PACK,
95 ARB_SHADING_LANGUAGE_PACKING,
96 ARB_SHADOW,
97 ARB_STENCIL_TEXTURING,
98 ARB_SYNC,
99 ARB_TESSELLATION_SHADER,
100 ARB_TEXTURE_BORDER_CLAMP,
101 ARB_TEXTURE_BUFFER_OBJECT,
102 ARB_TEXTURE_BUFFER_RANGE,
103 ARB_TEXTURE_COMPRESSION,
104 ARB_TEXTURE_COMPRESSION_BPTC,
105 ARB_TEXTURE_COMPRESSION_RGTC,
106 ARB_TEXTURE_CUBE_MAP,
107 ARB_TEXTURE_CUBE_MAP_ARRAY,
108 ARB_TEXTURE_ENV_COMBINE,
109 ARB_TEXTURE_ENV_DOT3,
110 ARB_TEXTURE_FLOAT,
111 ARB_TEXTURE_GATHER,
112 ARB_TEXTURE_MIRRORED_REPEAT,
113 ARB_TEXTURE_MIRROR_CLAMP_TO_EDGE,
114 ARB_TEXTURE_NON_POWER_OF_TWO,
115 ARB_TEXTURE_QUERY_LEVELS,
116 ARB_TEXTURE_RECTANGLE,
117 ARB_TEXTURE_RG,
118 ARB_TEXTURE_RGB10_A2UI,
119 ARB_TEXTURE_STORAGE,
120 ARB_TEXTURE_SWIZZLE,
121 ARB_TEXTURE_VIEW,
122 ARB_TIMER_QUERY,
123 ARB_TRANSFORM_FEEDBACK2,
124 ARB_TRANSFORM_FEEDBACK3,
125 ARB_UNIFORM_BUFFER_OBJECT,
126 ARB_VERTEX_ARRAY_BGRA,
127 ARB_VERTEX_BLEND,
128 ARB_VERTEX_BUFFER_OBJECT,
129 ARB_VERTEX_PROGRAM,
130 ARB_VERTEX_SHADER,
131 ARB_VERTEX_TYPE_2_10_10_10_REV,
132 ARB_VIEWPORT_ARRAY,
133 /* ATI */
134 ATI_FRAGMENT_SHADER,
135 ATI_SEPARATE_STENCIL,
136 ATI_TEXTURE_COMPRESSION_3DC,
137 ATI_TEXTURE_ENV_COMBINE3,
138 ATI_TEXTURE_MIRROR_ONCE,
139 /* EXT */
140 EXT_BLEND_COLOR,
141 EXT_BLEND_EQUATION_SEPARATE,
142 EXT_BLEND_FUNC_SEPARATE,
143 EXT_BLEND_MINMAX,
144 EXT_BLEND_SUBTRACT,
145 EXT_DRAW_BUFFERS2,
146 EXT_DEPTH_BOUNDS_TEST,
147 EXT_FOG_COORD,
148 EXT_FRAMEBUFFER_BLIT,
149 EXT_FRAMEBUFFER_MULTISAMPLE,
150 EXT_FRAMEBUFFER_OBJECT,
151 EXT_GPU_PROGRAM_PARAMETERS,
152 EXT_GPU_SHADER4,
153 EXT_PACKED_DEPTH_STENCIL,
154 EXT_PACKED_FLOAT,
155 EXT_POINT_PARAMETERS,
156 EXT_PROVOKING_VERTEX,
157 EXT_SECONDARY_COLOR,
158 EXT_STENCIL_TWO_SIDE,
159 EXT_STENCIL_WRAP,
160 EXT_TEXTURE3D,
161 EXT_TEXTURE_ARRAY,
162 EXT_TEXTURE_COMPRESSION_RGTC,
163 EXT_TEXTURE_COMPRESSION_S3TC,
164 EXT_TEXTURE_ENV_COMBINE,
165 EXT_TEXTURE_ENV_DOT3,
166 EXT_TEXTURE_FILTER_ANISOTROPIC,
167 EXT_TEXTURE_INTEGER,
168 EXT_TEXTURE_LOD_BIAS,
169 EXT_TEXTURE_MIRROR_CLAMP,
170 EXT_TEXTURE_SHARED_EXPONENT,
171 EXT_TEXTURE_SNORM,
172 EXT_TEXTURE_SRGB,
173 EXT_TEXTURE_SRGB_DECODE,
174 EXT_VERTEX_ARRAY_BGRA,
175 /* NVIDIA */
176 NV_FENCE,
177 NV_FOG_DISTANCE,
178 NV_FRAGMENT_PROGRAM,
179 NV_FRAGMENT_PROGRAM2,
180 NV_FRAGMENT_PROGRAM_OPTION,
181 NV_HALF_FLOAT,
182 NV_LIGHT_MAX_EXPONENT,
183 NV_POINT_SPRITE,
184 NV_REGISTER_COMBINERS,
185 NV_REGISTER_COMBINERS2,
186 NV_TEXGEN_REFLECTION,
187 NV_TEXTURE_ENV_COMBINE4,
188 NV_TEXTURE_SHADER,
189 NV_TEXTURE_SHADER2,
190 NV_VERTEX_PROGRAM,
191 NV_VERTEX_PROGRAM1_1,
192 NV_VERTEX_PROGRAM2,
193 NV_VERTEX_PROGRAM2_OPTION,
194 NV_VERTEX_PROGRAM3,
195 /* SGI */
196 SGIS_GENERATE_MIPMAP,
197 /* WGL extensions */
198 WGL_ARB_PIXEL_FORMAT,
199 WGL_EXT_SWAP_CONTROL,
200 WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
201 WGL_WINE_QUERY_RENDERER,
202 /* Internally used */
203 WINED3D_GL_BLEND_EQUATION,
204 WINED3D_GL_LEGACY_CONTEXT,
205 WINED3D_GL_NORMALIZED_TEXRECT,
206 WINED3D_GL_PRIMITIVE_QUERY,
207 WINED3D_GL_VERSION_2_0,
208 WINED3D_GL_VERSION_3_2,
209 WINED3D_GLSL_130,
211 WINED3D_GL_EXT_COUNT,
213 #endif /* __WINE_WINED3D_GL */