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"
|
2015-01-08 17:20:20 +01:00
|
|
|
#include "wine/wglext.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
|
|
|
|
2009-09-11 19:01:19 +02:00
|
|
|
void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
|
|
|
|
void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
|
2007-08-14 01:05:09 +02:00
|
|
|
|
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_CLIENT_STORAGE,
|
|
|
|
APPLE_FENCE,
|
|
|
|
APPLE_FLOAT_PIXELS,
|
|
|
|
APPLE_FLUSH_BUFFER_RANGE,
|
|
|
|
APPLE_YCBCR_422,
|
|
|
|
/* ARB */
|
2014-04-15 09:15:20 +02:00
|
|
|
ARB_BLEND_FUNC_EXTENDED,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_COLOR_BUFFER_FLOAT,
|
2013-04-19 08:34:12 +02:00
|
|
|
ARB_DEBUG_OUTPUT,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_DEPTH_BUFFER_FLOAT,
|
|
|
|
ARB_DEPTH_TEXTURE,
|
|
|
|
ARB_DRAW_BUFFERS,
|
2011-06-11 15:39:30 +02:00
|
|
|
ARB_DRAW_ELEMENTS_BASE_VERTEX,
|
2012-11-26 22:52:41 +01:00
|
|
|
ARB_DRAW_INSTANCED,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_FRAGMENT_PROGRAM,
|
|
|
|
ARB_FRAGMENT_SHADER,
|
|
|
|
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,
|
|
|
|
ARB_HALF_FLOAT_PIXEL,
|
|
|
|
ARB_HALF_FLOAT_VERTEX,
|
2012-12-02 18:53:20 +01:00
|
|
|
ARB_INSTANCED_ARRAYS,
|
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,
|
|
|
|
ARB_PIXEL_BUFFER_OBJECT,
|
|
|
|
ARB_POINT_PARAMETERS,
|
|
|
|
ARB_POINT_SPRITE,
|
|
|
|
ARB_PROVOKING_VERTEX,
|
2015-01-15 17:19:06 +01:00
|
|
|
ARB_SAMPLER_OBJECTS,
|
2012-09-25 10:34:44 +02:00
|
|
|
ARB_SHADER_BIT_ENCODING,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_SHADER_TEXTURE_LOD,
|
2010-01-27 20:19:39 +01:00
|
|
|
ARB_SHADING_LANGUAGE_100,
|
2010-05-17 11:14:47 +02:00
|
|
|
ARB_SHADOW,
|
2010-01-25 19:51:29 +01:00
|
|
|
ARB_SYNC,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_BORDER_CLAMP,
|
|
|
|
ARB_TEXTURE_COMPRESSION,
|
2010-07-30 10:15:27 +02:00
|
|
|
ARB_TEXTURE_COMPRESSION_RGTC,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_CUBE_MAP,
|
|
|
|
ARB_TEXTURE_ENV_COMBINE,
|
|
|
|
ARB_TEXTURE_ENV_DOT3,
|
|
|
|
ARB_TEXTURE_FLOAT,
|
|
|
|
ARB_TEXTURE_MIRRORED_REPEAT,
|
2013-11-05 23:08:30 +01:00
|
|
|
ARB_TEXTURE_MIRROR_CLAMP_TO_EDGE,
|
2010-01-21 10:38:27 +01:00
|
|
|
ARB_TEXTURE_NON_POWER_OF_TWO,
|
|
|
|
ARB_TEXTURE_RECTANGLE,
|
|
|
|
ARB_TEXTURE_RG,
|
2014-04-16 18:14:47 +02:00
|
|
|
ARB_TIMER_QUERY,
|
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_BLEND,
|
|
|
|
ARB_VERTEX_BUFFER_OBJECT,
|
|
|
|
ARB_VERTEX_PROGRAM,
|
|
|
|
ARB_VERTEX_SHADER,
|
|
|
|
/* 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-03-25 22:51:23 +01:00
|
|
|
EXT_DRAW_BUFFERS2,
|
2010-09-16 08:58:26 +02:00
|
|
|
EXT_DEPTH_BOUNDS_TEST,
|
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,
|
2010-01-21 10:38:27 +01:00
|
|
|
EXT_PACKED_DEPTH_STENCIL,
|
|
|
|
EXT_POINT_PARAMETERS,
|
|
|
|
EXT_PROVOKING_VERTEX,
|
|
|
|
EXT_SECONDARY_COLOR,
|
|
|
|
EXT_STENCIL_TWO_SIDE,
|
|
|
|
EXT_STENCIL_WRAP,
|
|
|
|
EXT_TEXTURE3D,
|
|
|
|
EXT_TEXTURE_COMPRESSION_RGTC,
|
|
|
|
EXT_TEXTURE_COMPRESSION_S3TC,
|
|
|
|
EXT_TEXTURE_ENV_COMBINE,
|
|
|
|
EXT_TEXTURE_ENV_DOT3,
|
|
|
|
EXT_TEXTURE_FILTER_ANISOTROPIC,
|
|
|
|
EXT_TEXTURE_LOD_BIAS,
|
2013-11-06 21:33:15 +01:00
|
|
|
EXT_TEXTURE_MIRROR_CLAMP,
|
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
|
|
|
EXT_VERTEX_ARRAY_BGRA,
|
|
|
|
/* 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,
|
|
|
|
/* SGI */
|
|
|
|
SGIS_GENERATE_MIPMAP,
|
|
|
|
/* 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,
|
|
|
|
/* Internally used */
|
2010-07-20 18:51:54 +02:00
|
|
|
WINED3D_GL_NORMALIZED_TEXRECT,
|
2010-06-11 16:05:23 +02:00
|
|
|
WINED3D_GL_VERSION_2_0,
|
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 */
|