
Conflicts: include/GLES/egl.h include/GLES/egltypes.h src/egl/main/eglconfig.c src/egl/main/eglconfig.h src/glu/sgi/libnurbs/interface/bezierEval.h src/glu/sgi/libnurbs/interface/bezierPatch.h src/glu/sgi/libnurbs/interface/bezierPatchMesh.h src/glu/sgi/libnurbs/internals/dataTransform.h src/glu/sgi/libnurbs/internals/displaymode.h src/glu/sgi/libnurbs/internals/sorter.h src/glu/sgi/libnurbs/nurbtess/definitions.h src/glu/sgi/libnurbs/nurbtess/directedLine.h src/glu/sgi/libnurbs/nurbtess/gridWrap.h src/glu/sgi/libnurbs/nurbtess/monoChain.h src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h src/glu/sgi/libnurbs/nurbtess/partitionX.h src/glu/sgi/libnurbs/nurbtess/partitionY.h src/glu/sgi/libnurbs/nurbtess/polyDBG.h src/glu/sgi/libnurbs/nurbtess/polyUtil.h src/glu/sgi/libnurbs/nurbtess/primitiveStream.h src/glu/sgi/libnurbs/nurbtess/quicksort.h src/glu/sgi/libnurbs/nurbtess/rectBlock.h src/glu/sgi/libnurbs/nurbtess/sampleComp.h src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h src/glu/sgi/libnurbs/nurbtess/sampledLine.h src/glu/sgi/libnurbs/nurbtess/searchTree.h src/glu/sgi/libnurbs/nurbtess/zlassert.h src/glu/sgi/libutil/error.c src/glu/sgi/libutil/glue.c src/glu/sgi/libutil/gluint.h src/glu/sgi/libutil/project.c src/glu/sgi/libutil/registry.c src/glx/x11/Makefile src/glx/x11/glxclient.h src/glx/x11/glxext.c src/mesa/drivers/dri/ffb/ffb_dd.h src/mesa/drivers/dri/ffb/ffb_points.h src/mesa/drivers/dri/gamma/gamma_context.h src/mesa/drivers/dri/gamma/gamma_macros.h src/mesa/drivers/dri/i810/i810context.h src/mesa/drivers/dri/r128/r128_dd.h src/mesa/drivers/dri/r128/r128_tex.h src/mesa/drivers/dri/tdfx/tdfx_dd.h src/mesa/drivers/x11/xm_buffer.c src/mesa/glapi/glapi.c src/mesa/main/dispatch.c src/mesa/main/state.c src/mesa/main/texstate.c src/mesa/shader/arbprogparse.c src/mesa/shader/arbprogram.c src/mesa/shader/nvfragparse.c src/mesa/shader/nvprogram.c src/mesa/shader/shader_api.c src/mesa/sources src/mesa/swrast/s_aaline.c src/mesa/swrast/s_aaline.h src/mesa/swrast/s_aatriangle.h src/mesa/swrast/s_accum.c src/mesa/swrast/s_alpha.h src/mesa/swrast/s_bitmap.c src/mesa/swrast/s_blend.h src/mesa/swrast/s_context.c src/mesa/swrast/s_copypix.c src/mesa/swrast/s_depth.c src/mesa/swrast/s_depth.h src/mesa/swrast/s_drawpix.c src/mesa/swrast/s_drawpix.h src/mesa/swrast/s_feedback.c src/mesa/swrast/s_feedback.h src/mesa/swrast/s_fog.h src/mesa/swrast/s_lines.h src/mesa/swrast/s_logic.h src/mesa/swrast/s_masking.h src/mesa/swrast/s_points.c src/mesa/swrast/s_points.h src/mesa/swrast/s_readpix.c src/mesa/swrast/s_span.c src/mesa/swrast/s_span.h src/mesa/swrast/s_stencil.h src/mesa/swrast/s_texcombine.c src/mesa/swrast/s_texcombine.h src/mesa/swrast/s_texfilter.c src/mesa/swrast/s_texfilter.h src/mesa/swrast/s_texstore.c src/mesa/swrast/s_triangle.c src/mesa/swrast/s_triangle.h src/mesa/swrast/s_zoom.h src/mesa/swrast_setup/ss_context.c src/mesa/swrast_setup/ss_triangle.h src/mesa/tnl/t_draw.c src/mesa/tnl/t_vb_light.c src/mesa/tnl/t_vertex_generic.c src/mesa/tnl/t_vertex_sse.c src/mesa/tnl/t_vp_build.h src/mesa/tnl/tnl.h src/mesa/x86/common_x86.c
182 lines
6.2 KiB
C
182 lines
6.2 KiB
C
#ifndef __gl_core_h_
|
|
#define __gl_core_h_
|
|
|
|
/*
|
|
* SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
|
|
* Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice including the dates of first publication and
|
|
* either this permission notice or a reference to
|
|
* http://oss.sgi.com/projects/FreeB/
|
|
* shall be included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
* Except as contained in this notice, the name of Silicon Graphics, Inc.
|
|
* shall not be used in advertising or otherwise to promote the sale, use or
|
|
* other dealings in this Software without prior written authorization from
|
|
* Silicon Graphics, Inc.
|
|
*/
|
|
|
|
#if !defined(_WIN32_WCE)
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
#define GL_CORE_SGI 1
|
|
#define GL_CORE_MESA 2
|
|
#define GL_CORE_APPLE 4
|
|
#define GL_CORE_WINDOWS 8
|
|
|
|
typedef struct __GLcontextRec __GLcontext;
|
|
|
|
/*
|
|
** This file defines the interface between the GL core and the surrounding
|
|
** "operating system" that supports it (currently the GLX or WGL extensions).
|
|
**
|
|
** Members (data and function pointers) are documented as imported or
|
|
** exported according to how they are used by the core rendering functions.
|
|
** Imported members are initialized by the "operating system" and used by
|
|
** the core functions. Exported members are initialized by the core functions
|
|
** and used by the "operating system".
|
|
*/
|
|
|
|
/**
|
|
* Mode and limit information for a context. This information is
|
|
* kept around in the context so that values can be used during
|
|
* command execution, and for returning information about the
|
|
* context to the application.
|
|
*
|
|
* Instances of this structure are shared by the driver and the loader. To
|
|
* maintain binary compatability, new fields \b must be added only to the
|
|
* end of the structure.
|
|
*
|
|
* \sa _gl_context_modes_create
|
|
*/
|
|
typedef struct __GLcontextModesRec {
|
|
struct __GLcontextModesRec * next;
|
|
|
|
GLboolean rgbMode;
|
|
GLboolean floatMode;
|
|
GLboolean colorIndexMode;
|
|
GLuint doubleBufferMode;
|
|
GLuint stereoMode;
|
|
|
|
GLboolean haveAccumBuffer;
|
|
GLboolean haveDepthBuffer;
|
|
GLboolean haveStencilBuffer;
|
|
|
|
GLint redBits, greenBits, blueBits, alphaBits; /* bits per comp */
|
|
GLuint redMask, greenMask, blueMask, alphaMask;
|
|
GLint rgbBits; /* total bits for rgb */
|
|
GLint indexBits; /* total bits for colorindex */
|
|
|
|
GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
|
|
GLint depthBits;
|
|
GLint stencilBits;
|
|
|
|
GLint numAuxBuffers;
|
|
|
|
GLint level;
|
|
|
|
GLint pixmapMode;
|
|
|
|
/* GLX */
|
|
GLint visualID;
|
|
GLint visualType; /**< One of the GLX X visual types. (i.e.,
|
|
* \c GLX_TRUE_COLOR, etc.)
|
|
*/
|
|
|
|
/* EXT_visual_rating / GLX 1.2 */
|
|
GLint visualRating;
|
|
|
|
/* EXT_visual_info / GLX 1.2 */
|
|
GLint transparentPixel;
|
|
/* colors are floats scaled to ints */
|
|
GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha;
|
|
GLint transparentIndex;
|
|
|
|
/* ARB_multisample / SGIS_multisample */
|
|
GLint sampleBuffers;
|
|
GLint samples;
|
|
|
|
/* SGIX_fbconfig / GLX 1.3 */
|
|
GLint drawableType;
|
|
GLint renderType;
|
|
GLint xRenderable;
|
|
GLint fbconfigID;
|
|
|
|
/* SGIX_pbuffer / GLX 1.3 */
|
|
GLint maxPbufferWidth;
|
|
GLint maxPbufferHeight;
|
|
GLint maxPbufferPixels;
|
|
GLint optimalPbufferWidth; /* Only for SGIX_pbuffer. */
|
|
GLint optimalPbufferHeight; /* Only for SGIX_pbuffer. */
|
|
|
|
/* SGIX_visual_select_group */
|
|
GLint visualSelectGroup;
|
|
|
|
/* OML_swap_method */
|
|
GLint swapMethod;
|
|
|
|
GLint screen;
|
|
|
|
/* EXT_texture_from_pixmap */
|
|
GLint bindToTextureRgb;
|
|
GLint bindToTextureRgba;
|
|
GLint bindToMipmapTexture;
|
|
GLint bindToTextureTargets;
|
|
GLint yInverted;
|
|
} __GLcontextModes;
|
|
|
|
/* Several fields of __GLcontextModes can take these as values. Since
|
|
* GLX header files may not be available everywhere they need to be used,
|
|
* redefine them here.
|
|
*/
|
|
#define GLX_NONE 0x8000
|
|
#define GLX_SLOW_CONFIG 0x8001
|
|
#define GLX_TRUE_COLOR 0x8002
|
|
#define GLX_DIRECT_COLOR 0x8003
|
|
#define GLX_PSEUDO_COLOR 0x8004
|
|
#define GLX_STATIC_COLOR 0x8005
|
|
#define GLX_GRAY_SCALE 0x8006
|
|
#define GLX_STATIC_GRAY 0x8007
|
|
#define GLX_TRANSPARENT_RGB 0x8008
|
|
#define GLX_TRANSPARENT_INDEX 0x8009
|
|
#define GLX_NON_CONFORMANT_CONFIG 0x800D
|
|
#define GLX_SWAP_EXCHANGE_OML 0x8061
|
|
#define GLX_SWAP_COPY_OML 0x8062
|
|
#define GLX_SWAP_UNDEFINED_OML 0x8063
|
|
|
|
#define GLX_DONT_CARE 0xFFFFFFFF
|
|
|
|
#define GLX_RGBA_BIT 0x00000001
|
|
#define GLX_COLOR_INDEX_BIT 0x00000002
|
|
#define GLX_WINDOW_BIT 0x00000001
|
|
#define GLX_PIXMAP_BIT 0x00000002
|
|
#define GLX_PBUFFER_BIT 0x00000004
|
|
|
|
#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
|
|
#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
|
|
#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
|
|
#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
|
|
#define GLX_Y_INVERTED_EXT 0x20D4
|
|
|
|
#define GLX_TEXTURE_1D_BIT_EXT 0x00000001
|
|
#define GLX_TEXTURE_2D_BIT_EXT 0x00000002
|
|
#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
|
|
|
|
#endif /* __gl_core_h_ */
|