2 * Direct3D wine OpenGL include file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2004 Jason Edmeades
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
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
43 APPLE_FLUSH_BUFFER_RANGE
,
46 ARB_BLEND_FUNC_EXTENDED
,
48 ARB_COLOR_BUFFER_FLOAT
,
51 ARB_DEPTH_BUFFER_FLOAT
,
53 ARB_DERIVATIVE_CONTROL
,
55 ARB_DRAW_ELEMENTS_BASE_VERTEX
,
57 ARB_ES2_COMPATIBILITY
,
58 ARB_ES3_COMPATIBILITY
,
59 ARB_EXPLICIT_ATTRIB_LOCATION
,
60 ARB_FRAGMENT_COORD_CONVENTIONS
,
63 ARB_FRAMEBUFFER_OBJECT
,
67 ARB_HALF_FLOAT_VERTEX
,
69 ARB_INTERNALFORMAT_QUERY
,
70 ARB_INTERNALFORMAT_QUERY2
,
71 ARB_MAP_BUFFER_ALIGNMENT
,
76 ARB_PIXEL_BUFFER_OBJECT
,
81 ARB_SHADER_BIT_ENCODING
,
82 ARB_SHADER_IMAGE_LOAD_STORE
,
83 ARB_SHADER_IMAGE_SIZE
,
84 ARB_SHADER_TEXTURE_LOD
,
85 ARB_SHADING_LANGUAGE_100
,
87 ARB_STENCIL_TEXTURING
,
89 ARB_TEXTURE_BORDER_CLAMP
,
90 ARB_TEXTURE_BUFFER_OBJECT
,
91 ARB_TEXTURE_COMPRESSION
,
92 ARB_TEXTURE_COMPRESSION_BPTC
,
93 ARB_TEXTURE_COMPRESSION_RGTC
,
95 ARB_TEXTURE_ENV_COMBINE
,
98 ARB_TEXTURE_MIRRORED_REPEAT
,
99 ARB_TEXTURE_MIRROR_CLAMP_TO_EDGE
,
100 ARB_TEXTURE_NON_POWER_OF_TWO
,
101 ARB_TEXTURE_QUERY_LEVELS
,
102 ARB_TEXTURE_RECTANGLE
,
104 ARB_TEXTURE_RGB10_A2UI
,
109 ARB_UNIFORM_BUFFER_OBJECT
,
110 ARB_VERTEX_ARRAY_BGRA
,
112 ARB_VERTEX_BUFFER_OBJECT
,
115 ARB_VERTEX_TYPE_2_10_10_10_REV
,
119 ATI_SEPARATE_STENCIL
,
120 ATI_TEXTURE_COMPRESSION_3DC
,
121 ATI_TEXTURE_ENV_COMBINE3
,
122 ATI_TEXTURE_MIRROR_ONCE
,
125 EXT_BLEND_EQUATION_SEPARATE
,
126 EXT_BLEND_FUNC_SEPARATE
,
130 EXT_DEPTH_BOUNDS_TEST
,
132 EXT_FRAMEBUFFER_BLIT
,
133 EXT_FRAMEBUFFER_MULTISAMPLE
,
134 EXT_FRAMEBUFFER_OBJECT
,
135 EXT_GPU_PROGRAM_PARAMETERS
,
137 EXT_PACKED_DEPTH_STENCIL
,
139 EXT_POINT_PARAMETERS
,
140 EXT_PROVOKING_VERTEX
,
142 EXT_STENCIL_TWO_SIDE
,
146 EXT_TEXTURE_COMPRESSION_RGTC
,
147 EXT_TEXTURE_COMPRESSION_S3TC
,
148 EXT_TEXTURE_ENV_COMBINE
,
149 EXT_TEXTURE_ENV_DOT3
,
150 EXT_TEXTURE_FILTER_ANISOTROPIC
,
152 EXT_TEXTURE_LOD_BIAS
,
153 EXT_TEXTURE_MIRROR_CLAMP
,
156 EXT_TEXTURE_SRGB_DECODE
,
157 EXT_VERTEX_ARRAY_BGRA
,
162 NV_FRAGMENT_PROGRAM2
,
163 NV_FRAGMENT_PROGRAM_OPTION
,
165 NV_LIGHT_MAX_EXPONENT
,
167 NV_REGISTER_COMBINERS
,
168 NV_REGISTER_COMBINERS2
,
169 NV_TEXGEN_REFLECTION
,
170 NV_TEXTURE_ENV_COMBINE4
,
174 NV_VERTEX_PROGRAM1_1
,
176 NV_VERTEX_PROGRAM2_OPTION
,
179 SGIS_GENERATE_MIPMAP
,
181 WGL_ARB_PIXEL_FORMAT
,
182 WGL_EXT_SWAP_CONTROL
,
183 WGL_WINE_PIXEL_FORMAT_PASSTHROUGH
,
184 WGL_WINE_QUERY_RENDERER
,
185 /* Internally used */
186 WINED3D_GL_BLEND_EQUATION
,
187 WINED3D_GL_NORMALIZED_TEXRECT
,
188 WINED3D_GL_LEGACY_CONTEXT
,
189 WINED3D_GL_VERSION_2_0
,
190 WINED3D_GL_VERSION_3_2
,
191 WINED3D_GL_VERSION_4_3
,
193 WINED3D_GL_EXT_COUNT
,
195 #endif /* __WINE_WINED3D_GL */