2003-11-14 04:50:35 +01:00
|
|
|
/*
|
|
|
|
* Direct3D wine OpenGL include file
|
|
|
|
*
|
|
|
|
* Copyright 2002-2003 The wine-d3d team
|
2004-09-29 23:26:47 +02:00
|
|
|
* Copyright 2002-2004 Jason Edmeades
|
2003-11-14 04:50:35 +01:00
|
|
|
* Raphael Junqueira
|
2007-08-14 01:05:09 +02:00
|
|
|
* Copyright 2007 Roderick Colenbrander
|
2003-11-14 04:50:35 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-11-14 04:50:35 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINED3D_GL_H
|
|
|
|
#define __WINE_WINED3D_GL_H
|
|
|
|
|
2012-11-07 13:54:32 +01:00
|
|
|
#include "wine/wgl.h"
|
2007-08-14 01:05:09 +02:00
|
|
|
|
2012-11-07 13:54:32 +01:00
|
|
|
#define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837 /* not in the gl spec */
|
2010-01-21 10:38:27 +01:00
|
|
|
|
|
|
|
/* OpenGL extensions. */
|
2011-07-03 22:27:23 +02:00
|
|
|
enum wined3d_gl_extension
|
2010-01-21 10:38:27 +01:00
|
|
|
{
|
|
|
|
WINED3D_GL_EXT_NONE,
|
2007-08-14 01:05:09 +02:00
|
|
|
|
2010-01-21 10:38:27 +01:00
|
|
|
/* APPLE */
|
|
|
|
APPLE_FENCE,
|
|
|
|
APPLE_FLOAT_PIXELS,
|
|
|
|
APPLE_FLUSH_BUFFER_RANGE,
|
|
|
|
APPLE_YCBCR_422,
|
|
|
|
/* ARB */
|
2017-11-01 22:08:45 +01:00
|
|
|
ARB_BASE_INSTANCE,
|
2014-04-15 09:15:20 +02:00
|
|
|
ARB_BLEND_FUNC_EXTENDED,
|
2018-09-28 20:18:29 +02:00
|
|
|
ARB_BUFFER_STORAGE,
|
2017-05-12 15:09:19 +02:00
|
|
|
ARB_CLEAR_BUFFER_OBJECT,
|
2017-05-12 15:09:18 +02:00
|
|
|
ARB_CLEAR_TEXTURE,
|
2016-10-03 23:46:55 +02:00
|
|
|
ARB_CLIP_CONTROL,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_COLOR_BUFFER_FLOAT,
|
2017-02-02 12:43:38 +01:00
|
|
|
ARB_COMPUTE_SHADER,
|
2017-09-10 14:25:40 +02:00
|
|
|
ARB_CONSERVATIVE_DEPTH,
|
2016-03-20 23:15:25 +01:00
|
|
|
ARB_COPY_BUFFER,
|
2017-11-15 22:13:00 +01:00
|
|
|
ARB_COPY_IMAGE,
|
2017-12-05 00:26:31 +01:00
|
|
|
ARB_CULL_DISTANCE,
|
2013-04-19 08:34:12 +02:00
|
|
|
ARB_DEBUG_OUTPUT,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_DEPTH_BUFFER_FLOAT,
|
2018-05-19 18:20:19 +02:00
|
|
|
ARB_DEPTH_CLAMP,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_DEPTH_TEXTURE,
|
2016-07-22 12:28:17 +02:00
|
|
|
ARB_DERIVATIVE_CONTROL,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_DRAW_BUFFERS,
|
2011-06-11 15:39:30 +02:00
|
|
|
ARB_DRAW_ELEMENTS_BASE_VERTEX,
|
2017-11-01 22:08:40 +01:00
|
|
|
ARB_DRAW_INDIRECT,
|
2012-11-26 22:52:41 +01:00
|
|
|
ARB_DRAW_INSTANCED,
|
2015-08-20 10:03:33 +02:00
|
|
|
ARB_ES2_COMPATIBILITY,
|
2016-12-07 12:43:01 +01:00
|
|
|
ARB_ES3_COMPATIBILITY,
|
2016-05-31 23:29:53 +02:00
|
|
|
ARB_EXPLICIT_ATTRIB_LOCATION,
|
2016-10-03 23:46:51 +02:00
|
|
|
ARB_FRAGMENT_COORD_CONVENTIONS,
|
2017-04-06 11:47:53 +02:00
|
|
|
ARB_FRAGMENT_LAYER_VIEWPORT,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_FRAGMENT_PROGRAM,
|
|
|
|
ARB_FRAGMENT_SHADER,
|
2018-02-28 12:12:39 +01:00
|
|
|
ARB_FRAMEBUFFER_NO_ATTACHMENTS,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_FRAMEBUFFER_OBJECT,
|
2012-08-15 00:38:23 +02:00
|
|
|
ARB_FRAMEBUFFER_SRGB,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_GEOMETRY_SHADER4,
|
2017-01-28 17:14:04 +01:00
|
|
|
ARB_GPU_SHADER5,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_HALF_FLOAT_PIXEL,
|
|
|
|
ARB_HALF_FLOAT_VERTEX,
|
2012-12-02 18:53:20 +01:00
|
|
|
ARB_INSTANCED_ARRAYS,
|
2016-01-26 22:51:30 +01:00
|
|
|
ARB_INTERNALFORMAT_QUERY,
|
2013-04-19 19:06:12 +02:00
|
|
|
ARB_INTERNALFORMAT_QUERY2,
|
2011-11-23 21:14:55 +01:00
|
|
|
ARB_MAP_BUFFER_ALIGNMENT,
|
2010-01-28 20:50:55 +01:00
|
|
|
ARB_MAP_BUFFER_RANGE,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_MULTISAMPLE,
|
|
|
|
ARB_MULTITEXTURE,
|
|
|
|
ARB_OCCLUSION_QUERY,
|
2017-06-05 00:47:34 +02:00
|
|
|
ARB_PIPELINE_STATISTICS_QUERY,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_PIXEL_BUFFER_OBJECT,
|
|
|
|
ARB_POINT_PARAMETERS,
|
|
|
|
ARB_POINT_SPRITE,
|
2018-10-08 20:25:39 +02:00
|
|
|
ARB_POLYGON_OFFSET_CLAMP,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_PROVOKING_VERTEX,
|
2018-09-28 20:18:29 +02:00
|
|
|
ARB_QUERY_BUFFER_OBJECT,
|
2018-05-15 10:51:47 +02:00
|
|
|
ARB_SAMPLE_SHADING,
|
2015-01-15 17:19:06 +01:00
|
|
|
ARB_SAMPLER_OBJECTS,
|
2017-03-08 12:07:23 +01:00
|
|
|
ARB_SEAMLESS_CUBE_MAP,
|
2017-03-03 01:30:29 +01:00
|
|
|
ARB_SHADER_ATOMIC_COUNTERS,
|
2018-09-25 12:10:12 +02:00
|
|
|
ARB_SHADER_VIEWPORT_LAYER_ARRAY,
|
2012-09-25 10:34:44 +02:00
|
|
|
ARB_SHADER_BIT_ENCODING,
|
2016-11-23 14:36:03 +01:00
|
|
|
ARB_SHADER_IMAGE_LOAD_STORE,
|
2016-11-29 12:06:29 +01:00
|
|
|
ARB_SHADER_IMAGE_SIZE,
|
2017-03-02 00:55:30 +01:00
|
|
|
ARB_SHADER_STORAGE_BUFFER_OBJECT,
|
2018-05-15 10:51:44 +02:00
|
|
|
ARB_SHADER_TEXTURE_IMAGE_SAMPLES,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_SHADER_TEXTURE_LOD,
|
2010-01-27 20:19:39 +01:00
|
|
|
ARB_SHADING_LANGUAGE_100,
|
2017-02-26 18:48:01 +01:00
|
|
|
ARB_SHADING_LANGUAGE_420PACK,
|
2017-01-28 17:14:00 +01:00
|
|
|
ARB_SHADING_LANGUAGE_PACKING,
|
2010-05-17 11:14:47 +02:00
|
|
|
ARB_SHADOW,
|
2016-12-01 13:56:33 +01:00
|
|
|
ARB_STENCIL_TEXTURING,
|
2010-01-25 19:51:29 +01:00
|
|
|
ARB_SYNC,
|
2017-04-25 12:25:40 +02:00
|
|
|
ARB_TESSELLATION_SHADER,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_BORDER_CLAMP,
|
2017-01-26 13:07:29 +01:00
|
|
|
ARB_TEXTURE_BUFFER_OBJECT,
|
2017-02-14 13:15:07 +01:00
|
|
|
ARB_TEXTURE_BUFFER_RANGE,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_COMPRESSION,
|
2016-08-20 08:24:23 +02:00
|
|
|
ARB_TEXTURE_COMPRESSION_BPTC,
|
2010-07-30 10:15:27 +02:00
|
|
|
ARB_TEXTURE_COMPRESSION_RGTC,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_CUBE_MAP,
|
2017-02-10 12:26:53 +01:00
|
|
|
ARB_TEXTURE_CUBE_MAP_ARRAY,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_ENV_COMBINE,
|
|
|
|
ARB_TEXTURE_ENV_DOT3,
|
2017-09-15 15:12:28 +02:00
|
|
|
ARB_TEXTURE_FILTER_ANISOTROPIC,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_FLOAT,
|
2017-04-11 13:30:30 +02:00
|
|
|
ARB_TEXTURE_GATHER,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_MIRRORED_REPEAT,
|
2013-11-05 23:08:30 +01:00
|
|
|
ARB_TEXTURE_MIRROR_CLAMP_TO_EDGE,
|
2018-02-05 13:13:36 +01:00
|
|
|
ARB_TEXTURE_MULTISAMPLE,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_NON_POWER_OF_TWO,
|
2016-01-17 22:48:47 +01:00
|
|
|
ARB_TEXTURE_QUERY_LEVELS,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_RECTANGLE,
|
|
|
|
ARB_TEXTURE_RG,
|
2016-01-26 00:33:59 +01:00
|
|
|
ARB_TEXTURE_RGB10_A2UI,
|
2016-05-26 00:08:26 +02:00
|
|
|
ARB_TEXTURE_STORAGE,
|
2018-02-05 13:13:37 +01:00
|
|
|
ARB_TEXTURE_STORAGE_MULTISAMPLE,
|
2016-03-23 21:19:09 +01:00
|
|
|
ARB_TEXTURE_SWIZZLE,
|
2016-06-07 13:24:38 +02:00
|
|
|
ARB_TEXTURE_VIEW,
|
2014-04-16 18:14:47 +02:00
|
|
|
ARB_TIMER_QUERY,
|
2017-03-28 12:00:04 +02:00
|
|
|
ARB_TRANSFORM_FEEDBACK2,
|
2017-03-28 12:00:05 +02:00
|
|
|
ARB_TRANSFORM_FEEDBACK3,
|
2014-08-04 12:17:23 +02:00
|
|
|
ARB_UNIFORM_BUFFER_OBJECT,
|
2010-01-25 19:51:31 +01:00
|
|
|
ARB_VERTEX_ARRAY_BGRA,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_VERTEX_BUFFER_OBJECT,
|
|
|
|
ARB_VERTEX_PROGRAM,
|
|
|
|
ARB_VERTEX_SHADER,
|
2016-07-18 13:27:34 +02:00
|
|
|
ARB_VERTEX_TYPE_2_10_10_10_REV,
|
2016-10-03 23:46:54 +02:00
|
|
|
ARB_VIEWPORT_ARRAY,
|
2010-01-21 10:38:27 +01:00
|
|
|
/* ATI */
|
|
|
|
ATI_FRAGMENT_SHADER,
|
|
|
|
ATI_SEPARATE_STENCIL,
|
|
|
|
ATI_TEXTURE_COMPRESSION_3DC,
|
|
|
|
ATI_TEXTURE_ENV_COMBINE3,
|
|
|
|
ATI_TEXTURE_MIRROR_ONCE,
|
|
|
|
/* EXT */
|
|
|
|
EXT_BLEND_COLOR,
|
|
|
|
EXT_BLEND_EQUATION_SEPARATE,
|
|
|
|
EXT_BLEND_FUNC_SEPARATE,
|
|
|
|
EXT_BLEND_MINMAX,
|
2011-03-31 20:04:45 +02:00
|
|
|
EXT_BLEND_SUBTRACT,
|
2010-09-16 08:58:26 +02:00
|
|
|
EXT_DEPTH_BOUNDS_TEST,
|
2019-03-12 16:30:18 +01:00
|
|
|
EXT_DRAW_BUFFERS2,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_FOG_COORD,
|
|
|
|
EXT_FRAMEBUFFER_BLIT,
|
|
|
|
EXT_FRAMEBUFFER_MULTISAMPLE,
|
|
|
|
EXT_FRAMEBUFFER_OBJECT,
|
|
|
|
EXT_GPU_PROGRAM_PARAMETERS,
|
2010-01-24 21:16:10 +01:00
|
|
|
EXT_GPU_SHADER4,
|
2019-03-12 16:30:18 +01:00
|
|
|
EXT_MEMORY_OBJECT,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_PACKED_DEPTH_STENCIL,
|
2016-03-03 12:58:20 +01:00
|
|
|
EXT_PACKED_FLOAT,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_POINT_PARAMETERS,
|
|
|
|
EXT_PROVOKING_VERTEX,
|
|
|
|
EXT_SECONDARY_COLOR,
|
|
|
|
EXT_STENCIL_TWO_SIDE,
|
|
|
|
EXT_STENCIL_WRAP,
|
|
|
|
EXT_TEXTURE3D,
|
2016-04-19 00:01:25 +02:00
|
|
|
EXT_TEXTURE_ARRAY,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_TEXTURE_COMPRESSION_RGTC,
|
|
|
|
EXT_TEXTURE_COMPRESSION_S3TC,
|
|
|
|
EXT_TEXTURE_ENV_COMBINE,
|
|
|
|
EXT_TEXTURE_ENV_DOT3,
|
2016-01-25 10:57:20 +01:00
|
|
|
EXT_TEXTURE_INTEGER,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_TEXTURE_LOD_BIAS,
|
2013-11-06 21:33:15 +01:00
|
|
|
EXT_TEXTURE_MIRROR_CLAMP,
|
2017-05-25 12:15:22 +02:00
|
|
|
EXT_TEXTURE_SHARED_EXPONENT,
|
2015-03-07 10:03:38 +01:00
|
|
|
EXT_TEXTURE_SNORM,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_TEXTURE_SRGB,
|
2011-03-03 09:24:09 +01:00
|
|
|
EXT_TEXTURE_SRGB_DECODE,
|
2010-01-21 10:38:27 +01:00
|
|
|
/* NVIDIA */
|
|
|
|
NV_FENCE,
|
|
|
|
NV_FOG_DISTANCE,
|
|
|
|
NV_FRAGMENT_PROGRAM,
|
|
|
|
NV_FRAGMENT_PROGRAM2,
|
|
|
|
NV_FRAGMENT_PROGRAM_OPTION,
|
|
|
|
NV_HALF_FLOAT,
|
|
|
|
NV_LIGHT_MAX_EXPONENT,
|
2010-07-16 18:39:06 +02:00
|
|
|
NV_POINT_SPRITE,
|
2010-01-21 10:38:27 +01:00
|
|
|
NV_REGISTER_COMBINERS,
|
|
|
|
NV_REGISTER_COMBINERS2,
|
|
|
|
NV_TEXGEN_REFLECTION,
|
|
|
|
NV_TEXTURE_ENV_COMBINE4,
|
|
|
|
NV_TEXTURE_SHADER,
|
|
|
|
NV_TEXTURE_SHADER2,
|
|
|
|
NV_VERTEX_PROGRAM,
|
|
|
|
NV_VERTEX_PROGRAM1_1,
|
|
|
|
NV_VERTEX_PROGRAM2,
|
|
|
|
NV_VERTEX_PROGRAM2_OPTION,
|
|
|
|
NV_VERTEX_PROGRAM3,
|
|
|
|
/* WGL extensions */
|
|
|
|
WGL_ARB_PIXEL_FORMAT,
|
2010-12-27 13:44:21 +01:00
|
|
|
WGL_EXT_SWAP_CONTROL,
|
2010-01-21 10:38:27 +01:00
|
|
|
WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
|
2016-03-15 16:55:14 +01:00
|
|
|
WGL_WINE_QUERY_RENDERER,
|
2010-01-21 10:38:27 +01:00
|
|
|
/* Internally used */
|
2015-06-16 22:45:41 +02:00
|
|
|
WINED3D_GL_BLEND_EQUATION,
|
2015-07-08 15:47:01 +02:00
|
|
|
WINED3D_GL_LEGACY_CONTEXT,
|
2017-05-24 17:09:59 +02:00
|
|
|
WINED3D_GL_NORMALIZED_TEXRECT,
|
|
|
|
WINED3D_GL_PRIMITIVE_QUERY,
|
2010-06-11 16:05:23 +02:00
|
|
|
WINED3D_GL_VERSION_2_0,
|
2015-10-29 15:09:53 +01:00
|
|
|
WINED3D_GL_VERSION_3_2,
|
2017-04-12 12:42:29 +02:00
|
|
|
WINED3D_GLSL_130,
|
2010-01-21 10:38:27 +01:00
|
|
|
|
|
|
|
WINED3D_GL_EXT_COUNT,
|
2011-07-03 22:27:23 +02:00
|
|
|
};
|
2003-11-14 04:50:35 +01:00
|
|
|
#endif /* __WINE_WINED3D_GL */
|