mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Import include directory from Mesa3D vendor drop (this time into the right directory)
svn path=/trunk/; revision=18990
This commit is contained in:
parent
9d4749e1fa
commit
6485745bf2
24 changed files with 14640 additions and 0 deletions
65
reactos/lib/mesa32/include/GL/amesa.h
Normal file
65
reactos/lib/mesa32/include/GL/amesa.h
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 3.3
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999-2000 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Allegro (DJGPP) driver by Bernhard Tschirren (bernie-t@geocities.com) */
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef AMESA_H
|
||||||
|
#define AMESA_H
|
||||||
|
|
||||||
|
|
||||||
|
#define AMESA_MAJOR_VERSION 3
|
||||||
|
#define AMESA_MINOR_VERSION 3
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct amesa_visual *AMesaVisual;
|
||||||
|
typedef struct amesa_buffer *AMesaBuffer;
|
||||||
|
typedef struct amesa_context *AMesaContext;
|
||||||
|
|
||||||
|
|
||||||
|
extern AMesaVisual AMesaCreateVisual(GLboolean dbFlag, GLint depth,
|
||||||
|
GLint depthSize,
|
||||||
|
GLint stencilSize,
|
||||||
|
GLint accumSize);
|
||||||
|
|
||||||
|
extern void AMesaDestroyVisual(AMesaVisual visual);
|
||||||
|
|
||||||
|
extern AMesaBuffer AMesaCreateBuffer(AMesaVisual visual,
|
||||||
|
GLint width, GLint height);
|
||||||
|
|
||||||
|
extern void AMesaDestroyBuffer(AMesaBuffer buffer);
|
||||||
|
|
||||||
|
|
||||||
|
extern AMesaContext AMesaCreateContext(AMesaVisual visual,
|
||||||
|
AMesaContext sharelist);
|
||||||
|
|
||||||
|
extern void AMesaDestroyContext(AMesaContext context);
|
||||||
|
|
||||||
|
extern GLboolean AMesaMakeCurrent(AMesaContext context, AMesaBuffer buffer);
|
||||||
|
|
||||||
|
extern void AMesaSwapBuffers(AMesaBuffer buffer);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* AMESA_H */
|
159
reactos/lib/mesa32/include/GL/dmesa.h
Normal file
159
reactos/lib/mesa32/include/GL/dmesa.h
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 6.1
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999-2004 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DOS/DJGPP device driver v1.6 for Mesa
|
||||||
|
*
|
||||||
|
* Copyright (C) 2002 - Borca Daniel
|
||||||
|
* Email : dborca@users.sourceforge.net
|
||||||
|
* Web : http://www.geocities.com/dborca
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef DMESA_H_included
|
||||||
|
#define DMESA_H_included
|
||||||
|
|
||||||
|
#define DMESA_MAJOR_VERSION 6
|
||||||
|
#define DMESA_MINOR_VERSION 1
|
||||||
|
|
||||||
|
/* Sample Usage:
|
||||||
|
*
|
||||||
|
* 1. Call DMesaCreateVisual() to initialize graphics.
|
||||||
|
* 2. Call DMesaCreateContext() to create a DMesa rendering context.
|
||||||
|
* 3. Call DMesaCreateBuffer() to define the window.
|
||||||
|
* 4. Call DMesaMakeCurrent() to bind the DMesaBuffer to a DMesaContext.
|
||||||
|
* 5. Make gl* calls to render your graphics.
|
||||||
|
* 6. Use DMesaSwapBuffers() when double buffering to swap front/back buffers.
|
||||||
|
* 7. Before exiting, destroy DMesaBuffer, DMesaContext and DMesaVisual.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef struct dmesa_context *DMesaContext;
|
||||||
|
typedef struct dmesa_visual *DMesaVisual;
|
||||||
|
typedef struct dmesa_buffer *DMesaBuffer;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new Visual and set graphics mode.
|
||||||
|
*/
|
||||||
|
DMesaVisual DMesaCreateVisual (GLint width, /* X res */
|
||||||
|
GLint height, /* Y res */
|
||||||
|
GLint colDepth, /* BPP */
|
||||||
|
GLint refresh, /* refresh rate: 0=default */
|
||||||
|
GLboolean dbFlag, /* double-buffered */
|
||||||
|
GLboolean rgbFlag, /* RGB mode */
|
||||||
|
GLint alphaSize, /* requested bits/alpha */
|
||||||
|
GLint depthSize, /* requested bits/depth */
|
||||||
|
GLint stencilSize, /* requested bits/stencil */
|
||||||
|
GLint accumSize); /* requested bits/accum */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy Visual and restore screen.
|
||||||
|
*/
|
||||||
|
void DMesaDestroyVisual (DMesaVisual v);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new Context for rendering.
|
||||||
|
*/
|
||||||
|
DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy Context.
|
||||||
|
*/
|
||||||
|
void DMesaDestroyContext (DMesaContext c);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a handle to the current context.
|
||||||
|
*/
|
||||||
|
DMesaContext DMesaGetCurrentContext (void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new Buffer (window).
|
||||||
|
*/
|
||||||
|
DMesaBuffer DMesaCreateBuffer (DMesaVisual visual,
|
||||||
|
GLint xpos, GLint ypos,
|
||||||
|
GLint width, GLint height);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy Buffer.
|
||||||
|
*/
|
||||||
|
void DMesaDestroyBuffer (DMesaBuffer b);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a handle to the current buffer.
|
||||||
|
*/
|
||||||
|
DMesaBuffer DMesaGetCurrentBuffer (void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Swap the front and back buffers for the given Buffer.
|
||||||
|
* No action is taken if the buffer is not double buffered.
|
||||||
|
*/
|
||||||
|
void DMesaSwapBuffers (DMesaBuffer b);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bind Buffer to Context and make the Context the current one.
|
||||||
|
*/
|
||||||
|
GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Move/Resize current Buffer.
|
||||||
|
*/
|
||||||
|
GLboolean DMesaMoveBuffer (GLint xpos, GLint ypos);
|
||||||
|
GLboolean DMesaResizeBuffer (GLint width, GLint height);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set palette index, using normalized values.
|
||||||
|
*/
|
||||||
|
void DMesaSetCI (int ndx, GLfloat red, GLfloat green, GLfloat blue);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DMesa functions
|
||||||
|
*/
|
||||||
|
void *DMesaGetProcAddress (const char *name);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DMesa state retrieval.
|
||||||
|
*/
|
||||||
|
#define DMESA_GET_SCREEN_SIZE 0x0100
|
||||||
|
#define DMESA_GET_DRIVER_CAPS 0x0200
|
||||||
|
#define DMESA_GET_VIDEO_MODES 0x0300
|
||||||
|
#define DMESA_GET_BUFFER_ADDR 0x0400
|
||||||
|
|
||||||
|
#define DMESA_DRIVER_SWDB_BIT 0x1 /* software double-buffered */
|
||||||
|
#define DMESA_DRIVER_LLWO_BIT 0x2 /* lower-left window origin */
|
||||||
|
int DMesaGetIntegerv (GLenum pname, GLint *params);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
103
reactos/lib/mesa32/include/GL/fxmesa.h
Normal file
103
reactos/lib/mesa32/include/GL/fxmesa.h
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.0
|
||||||
|
* Copyright (C) 1995-2001 Brian Paul
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FXMesa - 3Dfx Glide driver for Mesa. Contributed by David Bucciarelli
|
||||||
|
*
|
||||||
|
* NOTE: This version requires Glide3 (http://sourceforge.net/projects/glide)
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef FXMESA_H
|
||||||
|
#define FXMESA_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <glide.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define FXMESA_MAJOR_VERSION 5
|
||||||
|
#define FXMESA_MINOR_VERSION 0
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Values for attribList parameter to fxMesaCreateContext():
|
||||||
|
*/
|
||||||
|
#define FXMESA_NONE 0 /* to terminate attribList */
|
||||||
|
#define FXMESA_DOUBLEBUFFER 10
|
||||||
|
#define FXMESA_ALPHA_SIZE 11 /* followed by an integer */
|
||||||
|
#define FXMESA_DEPTH_SIZE 12 /* followed by an integer */
|
||||||
|
#define FXMESA_STENCIL_SIZE 13 /* followed by an integer */
|
||||||
|
#define FXMESA_ACCUM_SIZE 14 /* followed by an integer */
|
||||||
|
#define FXMESA_COLORDEPTH 20 /* followed by an integer */
|
||||||
|
#define FXMESA_SHARE_CONTEXT 990099 /* keep in sync with xmesa1.c! */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct tfxMesaContext *fxMesaContext;
|
||||||
|
|
||||||
|
|
||||||
|
#if defined (__BEOS__)
|
||||||
|
#pragma export on
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
|
||||||
|
GrScreenRefresh_t,
|
||||||
|
const GLint attribList[]);
|
||||||
|
|
||||||
|
GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
|
||||||
|
GLint width, GLint height,
|
||||||
|
const GLint attribList[]);
|
||||||
|
GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
|
||||||
|
|
||||||
|
GLAPI GLint GLAPIENTRY fxMesaSelectCurrentBoard(int n);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
|
||||||
|
|
||||||
|
GLAPI fxMesaContext GLAPIENTRY fxMesaGetCurrentContext(void);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxCloseHardware(void);
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY fxGetScreenGeometry (GLint *w, GLint *h);
|
||||||
|
|
||||||
|
|
||||||
|
#if defined (__BEOS__)
|
||||||
|
#pragma export off
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
85
reactos/lib/mesa32/include/GL/ggimesa.h
Normal file
85
reactos/lib/mesa32/include/GL/ggimesa.h
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library GGI bindings (GGIGL [giggle])
|
||||||
|
* Version: 4.0
|
||||||
|
* Copyright (C) 1995-2000 Brian Paul
|
||||||
|
* Copyright (C) 1998 Uwe Maurer
|
||||||
|
* Copyrigth (C) 2001 Filip Spacek
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GGIMESA_H
|
||||||
|
#define GGIMESA_H
|
||||||
|
|
||||||
|
#define GGIMESA_MAJOR_VERSION 4
|
||||||
|
#define GGIMESA_MINOR_VERSION 0
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <ggi/ggi.h>
|
||||||
|
#include "GL/gl.h"
|
||||||
|
|
||||||
|
typedef struct ggi_mesa_context *ggi_mesa_context_t;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize Mesa GGI extension
|
||||||
|
*/
|
||||||
|
int ggiMesaInit(void);
|
||||||
|
/*
|
||||||
|
* Clean up Mesa GGI exension
|
||||||
|
*/
|
||||||
|
int ggiMesaExit(void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Attach Mesa GGI extension to the visual 'vis'
|
||||||
|
*/
|
||||||
|
int ggiMesaAttach(ggi_visual_t vis);
|
||||||
|
/*
|
||||||
|
* Detach Mesa GGI extension from the visual 'vis'
|
||||||
|
*/
|
||||||
|
int ggiMesaDetach(ggi_visual_t vis);
|
||||||
|
|
||||||
|
int ggiMesaExtendVisual(ggi_visual_t vis, GLboolean alpha_flag,
|
||||||
|
GLboolean stereo_flag, GLint depth_size,
|
||||||
|
GLint stencil_size, GLint accum_red_size,
|
||||||
|
GLint accum_green_size, GLint accum_blue_size,
|
||||||
|
GLint accum_alpha_size, GLint num_samples);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new context capable of displaying on the visual vis.
|
||||||
|
*/
|
||||||
|
ggi_mesa_context_t ggiMesaCreateContext(ggi_visual_t vis);
|
||||||
|
/*
|
||||||
|
* Destroy the context 'ctx'
|
||||||
|
*/
|
||||||
|
void ggiMesaDestroyContext(ggi_mesa_context_t ctx);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make context 'ctx' the current context and bind it to visual 'vis'.
|
||||||
|
* Note that the context must have been created with respect to that visual.
|
||||||
|
*/
|
||||||
|
void ggiMesaMakeCurrent(ggi_mesa_context_t ctx, ggi_visual_t vis);
|
||||||
|
|
||||||
|
void ggiMesaSwapBuffers(void);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
2255
reactos/lib/mesa32/include/GL/gl.h
Normal file
2255
reactos/lib/mesa32/include/GL/gl.h
Normal file
File diff suppressed because it is too large
Load diff
1358
reactos/lib/mesa32/include/GL/gl_mangle.h
Normal file
1358
reactos/lib/mesa32/include/GL/gl_mangle.h
Normal file
File diff suppressed because it is too large
Load diff
6030
reactos/lib/mesa32/include/GL/glext.h
Normal file
6030
reactos/lib/mesa32/include/GL/glext.h
Normal file
File diff suppressed because it is too large
Load diff
340
reactos/lib/mesa32/include/GL/glu.h
Normal file
340
reactos/lib/mesa32/include/GL/glu.h
Normal file
|
@ -0,0 +1,340 @@
|
||||||
|
/*
|
||||||
|
** License Applicability. Except to the extent portions of this file are
|
||||||
|
** made subject to an alternative license as permitted in the SGI Free
|
||||||
|
** Software License B, Version 1.1 (the "License"), the contents of this
|
||||||
|
** file are subject only to the provisions of the License. You may not use
|
||||||
|
** this file except in compliance with the License. You may obtain a copy
|
||||||
|
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||||
|
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||||
|
**
|
||||||
|
** http://oss.sgi.com/projects/FreeB
|
||||||
|
**
|
||||||
|
** Note that, as provided in the License, the Software is distributed on an
|
||||||
|
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||||
|
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||||
|
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||||
|
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||||
|
**
|
||||||
|
** Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||||
|
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||||
|
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
||||||
|
** Copyright in any portions created by third parties is as indicated
|
||||||
|
** elsewhere herein. All Rights Reserved.
|
||||||
|
**
|
||||||
|
** Additional Notice Provisions: This software was created using the
|
||||||
|
** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
|
||||||
|
** not been independently verified as being compliant with the OpenGL(R)
|
||||||
|
** version 1.2.1 Specification.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __glu_h__
|
||||||
|
#define __glu_h__
|
||||||
|
|
||||||
|
#if defined(USE_MGL_NAMESPACE)
|
||||||
|
#include "glu_mangle.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <GL/gl.h>
|
||||||
|
|
||||||
|
#ifndef GLAPIENTRY
|
||||||
|
#define GLAPIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLAPIENTRYP
|
||||||
|
#define GLAPIENTRYP GLAPIENTRY *
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLAPI
|
||||||
|
#define GLAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*************************************************************/
|
||||||
|
|
||||||
|
/* Extensions */
|
||||||
|
#define GLU_EXT_object_space_tess 1
|
||||||
|
#define GLU_EXT_nurbs_tessellator 1
|
||||||
|
|
||||||
|
/* Boolean */
|
||||||
|
#define GLU_FALSE 0
|
||||||
|
#define GLU_TRUE 1
|
||||||
|
|
||||||
|
/* Version */
|
||||||
|
#define GLU_VERSION_1_1 1
|
||||||
|
#define GLU_VERSION_1_2 1
|
||||||
|
#define GLU_VERSION_1_3 1
|
||||||
|
|
||||||
|
/* StringName */
|
||||||
|
#define GLU_VERSION 100800
|
||||||
|
#define GLU_EXTENSIONS 100801
|
||||||
|
|
||||||
|
/* ErrorCode */
|
||||||
|
#define GLU_INVALID_ENUM 100900
|
||||||
|
#define GLU_INVALID_VALUE 100901
|
||||||
|
#define GLU_OUT_OF_MEMORY 100902
|
||||||
|
#define GLU_INCOMPATIBLE_GL_VERSION 100903
|
||||||
|
#define GLU_INVALID_OPERATION 100904
|
||||||
|
|
||||||
|
/* NurbsDisplay */
|
||||||
|
/* GLU_FILL */
|
||||||
|
#define GLU_OUTLINE_POLYGON 100240
|
||||||
|
#define GLU_OUTLINE_PATCH 100241
|
||||||
|
|
||||||
|
/* NurbsCallback */
|
||||||
|
#define GLU_NURBS_ERROR 100103
|
||||||
|
#define GLU_ERROR 100103
|
||||||
|
#define GLU_NURBS_BEGIN 100164
|
||||||
|
#define GLU_NURBS_BEGIN_EXT 100164
|
||||||
|
#define GLU_NURBS_VERTEX 100165
|
||||||
|
#define GLU_NURBS_VERTEX_EXT 100165
|
||||||
|
#define GLU_NURBS_NORMAL 100166
|
||||||
|
#define GLU_NURBS_NORMAL_EXT 100166
|
||||||
|
#define GLU_NURBS_COLOR 100167
|
||||||
|
#define GLU_NURBS_COLOR_EXT 100167
|
||||||
|
#define GLU_NURBS_TEXTURE_COORD 100168
|
||||||
|
#define GLU_NURBS_TEX_COORD_EXT 100168
|
||||||
|
#define GLU_NURBS_END 100169
|
||||||
|
#define GLU_NURBS_END_EXT 100169
|
||||||
|
#define GLU_NURBS_BEGIN_DATA 100170
|
||||||
|
#define GLU_NURBS_BEGIN_DATA_EXT 100170
|
||||||
|
#define GLU_NURBS_VERTEX_DATA 100171
|
||||||
|
#define GLU_NURBS_VERTEX_DATA_EXT 100171
|
||||||
|
#define GLU_NURBS_NORMAL_DATA 100172
|
||||||
|
#define GLU_NURBS_NORMAL_DATA_EXT 100172
|
||||||
|
#define GLU_NURBS_COLOR_DATA 100173
|
||||||
|
#define GLU_NURBS_COLOR_DATA_EXT 100173
|
||||||
|
#define GLU_NURBS_TEXTURE_COORD_DATA 100174
|
||||||
|
#define GLU_NURBS_TEX_COORD_DATA_EXT 100174
|
||||||
|
#define GLU_NURBS_END_DATA 100175
|
||||||
|
#define GLU_NURBS_END_DATA_EXT 100175
|
||||||
|
|
||||||
|
/* NurbsError */
|
||||||
|
#define GLU_NURBS_ERROR1 100251
|
||||||
|
#define GLU_NURBS_ERROR2 100252
|
||||||
|
#define GLU_NURBS_ERROR3 100253
|
||||||
|
#define GLU_NURBS_ERROR4 100254
|
||||||
|
#define GLU_NURBS_ERROR5 100255
|
||||||
|
#define GLU_NURBS_ERROR6 100256
|
||||||
|
#define GLU_NURBS_ERROR7 100257
|
||||||
|
#define GLU_NURBS_ERROR8 100258
|
||||||
|
#define GLU_NURBS_ERROR9 100259
|
||||||
|
#define GLU_NURBS_ERROR10 100260
|
||||||
|
#define GLU_NURBS_ERROR11 100261
|
||||||
|
#define GLU_NURBS_ERROR12 100262
|
||||||
|
#define GLU_NURBS_ERROR13 100263
|
||||||
|
#define GLU_NURBS_ERROR14 100264
|
||||||
|
#define GLU_NURBS_ERROR15 100265
|
||||||
|
#define GLU_NURBS_ERROR16 100266
|
||||||
|
#define GLU_NURBS_ERROR17 100267
|
||||||
|
#define GLU_NURBS_ERROR18 100268
|
||||||
|
#define GLU_NURBS_ERROR19 100269
|
||||||
|
#define GLU_NURBS_ERROR20 100270
|
||||||
|
#define GLU_NURBS_ERROR21 100271
|
||||||
|
#define GLU_NURBS_ERROR22 100272
|
||||||
|
#define GLU_NURBS_ERROR23 100273
|
||||||
|
#define GLU_NURBS_ERROR24 100274
|
||||||
|
#define GLU_NURBS_ERROR25 100275
|
||||||
|
#define GLU_NURBS_ERROR26 100276
|
||||||
|
#define GLU_NURBS_ERROR27 100277
|
||||||
|
#define GLU_NURBS_ERROR28 100278
|
||||||
|
#define GLU_NURBS_ERROR29 100279
|
||||||
|
#define GLU_NURBS_ERROR30 100280
|
||||||
|
#define GLU_NURBS_ERROR31 100281
|
||||||
|
#define GLU_NURBS_ERROR32 100282
|
||||||
|
#define GLU_NURBS_ERROR33 100283
|
||||||
|
#define GLU_NURBS_ERROR34 100284
|
||||||
|
#define GLU_NURBS_ERROR35 100285
|
||||||
|
#define GLU_NURBS_ERROR36 100286
|
||||||
|
#define GLU_NURBS_ERROR37 100287
|
||||||
|
|
||||||
|
/* NurbsProperty */
|
||||||
|
#define GLU_AUTO_LOAD_MATRIX 100200
|
||||||
|
#define GLU_CULLING 100201
|
||||||
|
#define GLU_SAMPLING_TOLERANCE 100203
|
||||||
|
#define GLU_DISPLAY_MODE 100204
|
||||||
|
#define GLU_PARAMETRIC_TOLERANCE 100202
|
||||||
|
#define GLU_SAMPLING_METHOD 100205
|
||||||
|
#define GLU_U_STEP 100206
|
||||||
|
#define GLU_V_STEP 100207
|
||||||
|
#define GLU_NURBS_MODE 100160
|
||||||
|
#define GLU_NURBS_MODE_EXT 100160
|
||||||
|
#define GLU_NURBS_TESSELLATOR 100161
|
||||||
|
#define GLU_NURBS_TESSELLATOR_EXT 100161
|
||||||
|
#define GLU_NURBS_RENDERER 100162
|
||||||
|
#define GLU_NURBS_RENDERER_EXT 100162
|
||||||
|
|
||||||
|
/* NurbsSampling */
|
||||||
|
#define GLU_OBJECT_PARAMETRIC_ERROR 100208
|
||||||
|
#define GLU_OBJECT_PARAMETRIC_ERROR_EXT 100208
|
||||||
|
#define GLU_OBJECT_PATH_LENGTH 100209
|
||||||
|
#define GLU_OBJECT_PATH_LENGTH_EXT 100209
|
||||||
|
#define GLU_PATH_LENGTH 100215
|
||||||
|
#define GLU_PARAMETRIC_ERROR 100216
|
||||||
|
#define GLU_DOMAIN_DISTANCE 100217
|
||||||
|
|
||||||
|
/* NurbsTrim */
|
||||||
|
#define GLU_MAP1_TRIM_2 100210
|
||||||
|
#define GLU_MAP1_TRIM_3 100211
|
||||||
|
|
||||||
|
/* QuadricDrawStyle */
|
||||||
|
#define GLU_POINT 100010
|
||||||
|
#define GLU_LINE 100011
|
||||||
|
#define GLU_FILL 100012
|
||||||
|
#define GLU_SILHOUETTE 100013
|
||||||
|
|
||||||
|
/* QuadricCallback */
|
||||||
|
/* GLU_ERROR */
|
||||||
|
|
||||||
|
/* QuadricNormal */
|
||||||
|
#define GLU_SMOOTH 100000
|
||||||
|
#define GLU_FLAT 100001
|
||||||
|
#define GLU_NONE 100002
|
||||||
|
|
||||||
|
/* QuadricOrientation */
|
||||||
|
#define GLU_OUTSIDE 100020
|
||||||
|
#define GLU_INSIDE 100021
|
||||||
|
|
||||||
|
/* TessCallback */
|
||||||
|
#define GLU_TESS_BEGIN 100100
|
||||||
|
#define GLU_BEGIN 100100
|
||||||
|
#define GLU_TESS_VERTEX 100101
|
||||||
|
#define GLU_VERTEX 100101
|
||||||
|
#define GLU_TESS_END 100102
|
||||||
|
#define GLU_END 100102
|
||||||
|
#define GLU_TESS_ERROR 100103
|
||||||
|
#define GLU_TESS_EDGE_FLAG 100104
|
||||||
|
#define GLU_EDGE_FLAG 100104
|
||||||
|
#define GLU_TESS_COMBINE 100105
|
||||||
|
#define GLU_TESS_BEGIN_DATA 100106
|
||||||
|
#define GLU_TESS_VERTEX_DATA 100107
|
||||||
|
#define GLU_TESS_END_DATA 100108
|
||||||
|
#define GLU_TESS_ERROR_DATA 100109
|
||||||
|
#define GLU_TESS_EDGE_FLAG_DATA 100110
|
||||||
|
#define GLU_TESS_COMBINE_DATA 100111
|
||||||
|
|
||||||
|
/* TessContour */
|
||||||
|
#define GLU_CW 100120
|
||||||
|
#define GLU_CCW 100121
|
||||||
|
#define GLU_INTERIOR 100122
|
||||||
|
#define GLU_EXTERIOR 100123
|
||||||
|
#define GLU_UNKNOWN 100124
|
||||||
|
|
||||||
|
/* TessProperty */
|
||||||
|
#define GLU_TESS_WINDING_RULE 100140
|
||||||
|
#define GLU_TESS_BOUNDARY_ONLY 100141
|
||||||
|
#define GLU_TESS_TOLERANCE 100142
|
||||||
|
|
||||||
|
/* TessError */
|
||||||
|
#define GLU_TESS_ERROR1 100151
|
||||||
|
#define GLU_TESS_ERROR2 100152
|
||||||
|
#define GLU_TESS_ERROR3 100153
|
||||||
|
#define GLU_TESS_ERROR4 100154
|
||||||
|
#define GLU_TESS_ERROR5 100155
|
||||||
|
#define GLU_TESS_ERROR6 100156
|
||||||
|
#define GLU_TESS_ERROR7 100157
|
||||||
|
#define GLU_TESS_ERROR8 100158
|
||||||
|
#define GLU_TESS_MISSING_BEGIN_POLYGON 100151
|
||||||
|
#define GLU_TESS_MISSING_BEGIN_CONTOUR 100152
|
||||||
|
#define GLU_TESS_MISSING_END_POLYGON 100153
|
||||||
|
#define GLU_TESS_MISSING_END_CONTOUR 100154
|
||||||
|
#define GLU_TESS_COORD_TOO_LARGE 100155
|
||||||
|
#define GLU_TESS_NEED_COMBINE_CALLBACK 100156
|
||||||
|
|
||||||
|
/* TessWinding */
|
||||||
|
#define GLU_TESS_WINDING_ODD 100130
|
||||||
|
#define GLU_TESS_WINDING_NONZERO 100131
|
||||||
|
#define GLU_TESS_WINDING_POSITIVE 100132
|
||||||
|
#define GLU_TESS_WINDING_NEGATIVE 100133
|
||||||
|
#define GLU_TESS_WINDING_ABS_GEQ_TWO 100134
|
||||||
|
|
||||||
|
/*************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
class GLUnurbs;
|
||||||
|
class GLUquadric;
|
||||||
|
class GLUtesselator;
|
||||||
|
#else
|
||||||
|
typedef struct GLUnurbs GLUnurbs;
|
||||||
|
typedef struct GLUquadric GLUquadric;
|
||||||
|
typedef struct GLUtesselator GLUtesselator;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef GLUnurbs GLUnurbsObj;
|
||||||
|
typedef GLUquadric GLUquadricObj;
|
||||||
|
typedef GLUtesselator GLUtesselatorObj;
|
||||||
|
typedef GLUtesselator GLUtriangulatorObj;
|
||||||
|
|
||||||
|
#define GLU_TESS_MAX_COORD 1.0e150
|
||||||
|
|
||||||
|
/* Internal convenience typedefs */
|
||||||
|
typedef void (GLAPIENTRYP _GLUfuncptr)();
|
||||||
|
|
||||||
|
GLAPI void GLAPIENTRY gluBeginCurve (GLUnurbs* nurb);
|
||||||
|
GLAPI void GLAPIENTRY gluBeginPolygon (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluBeginSurface (GLUnurbs* nurb);
|
||||||
|
GLAPI void GLAPIENTRY gluBeginTrim (GLUnurbs* nurb);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild1DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild1DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void *data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild2DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild3DMipmapLevels (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void *data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluBuild3DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
|
||||||
|
GLAPI GLboolean GLAPIENTRY gluCheckExtension (const GLubyte *extName, const GLubyte *extString);
|
||||||
|
GLAPI void GLAPIENTRY gluCylinder (GLUquadric* quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks);
|
||||||
|
GLAPI void GLAPIENTRY gluDeleteNurbsRenderer (GLUnurbs* nurb);
|
||||||
|
GLAPI void GLAPIENTRY gluDeleteQuadric (GLUquadric* quad);
|
||||||
|
GLAPI void GLAPIENTRY gluDeleteTess (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops);
|
||||||
|
GLAPI void GLAPIENTRY gluEndCurve (GLUnurbs* nurb);
|
||||||
|
GLAPI void GLAPIENTRY gluEndPolygon (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluEndSurface (GLUnurbs* nurb);
|
||||||
|
GLAPI void GLAPIENTRY gluEndTrim (GLUnurbs* nurb);
|
||||||
|
GLAPI const GLubyte * GLAPIENTRY gluErrorString (GLenum error);
|
||||||
|
GLAPI void GLAPIENTRY gluGetNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat* data);
|
||||||
|
GLAPI const GLubyte * GLAPIENTRY gluGetString (GLenum name);
|
||||||
|
GLAPI void GLAPIENTRY gluGetTessProperty (GLUtesselator* tess, GLenum which, GLdouble* data);
|
||||||
|
GLAPI void GLAPIENTRY gluLoadSamplingMatrices (GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view);
|
||||||
|
GLAPI void GLAPIENTRY gluLookAt (GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble upX, GLdouble upY, GLdouble upZ);
|
||||||
|
GLAPI GLUnurbs* GLAPIENTRY gluNewNurbsRenderer (void);
|
||||||
|
GLAPI GLUquadric* GLAPIENTRY gluNewQuadric (void);
|
||||||
|
GLAPI GLUtesselator* GLAPIENTRY gluNewTess (void);
|
||||||
|
GLAPI void GLAPIENTRY gluNextContour (GLUtesselator* tess, GLenum type);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsCallback (GLUnurbs* nurb, GLenum which, _GLUfuncptr CallBackFunc);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsCallbackData (GLUnurbs* nurb, GLvoid* userData);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsCallbackDataEXT (GLUnurbs* nurb, GLvoid* userData);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsCurve (GLUnurbs* nurb, GLint knotCount, GLfloat *knots, GLint stride, GLfloat *control, GLint order, GLenum type);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsProperty (GLUnurbs* nurb, GLenum property, GLfloat value);
|
||||||
|
GLAPI void GLAPIENTRY gluNurbsSurface (GLUnurbs* nurb, GLint sKnotCount, GLfloat* sKnots, GLint tKnotCount, GLfloat* tKnots, GLint sStride, GLint tStride, GLfloat* control, GLint sOrder, GLint tOrder, GLenum type);
|
||||||
|
GLAPI void GLAPIENTRY gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top);
|
||||||
|
GLAPI void GLAPIENTRY gluPartialDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep);
|
||||||
|
GLAPI void GLAPIENTRY gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar);
|
||||||
|
GLAPI void GLAPIENTRY gluPickMatrix (GLdouble x, GLdouble y, GLdouble delX, GLdouble delY, GLint *viewport);
|
||||||
|
GLAPI GLint GLAPIENTRY gluProject (GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* winX, GLdouble* winY, GLdouble* winZ);
|
||||||
|
GLAPI void GLAPIENTRY gluPwlCurve (GLUnurbs* nurb, GLint count, GLfloat* data, GLint stride, GLenum type);
|
||||||
|
GLAPI void GLAPIENTRY gluQuadricCallback (GLUquadric* quad, GLenum which, _GLUfuncptr CallBackFunc);
|
||||||
|
GLAPI void GLAPIENTRY gluQuadricDrawStyle (GLUquadric* quad, GLenum draw);
|
||||||
|
GLAPI void GLAPIENTRY gluQuadricNormals (GLUquadric* quad, GLenum normal);
|
||||||
|
GLAPI void GLAPIENTRY gluQuadricOrientation (GLUquadric* quad, GLenum orientation);
|
||||||
|
GLAPI void GLAPIENTRY gluQuadricTexture (GLUquadric* quad, GLboolean texture);
|
||||||
|
GLAPI GLint GLAPIENTRY gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut);
|
||||||
|
GLAPI void GLAPIENTRY gluSphere (GLUquadric* quad, GLdouble radius, GLint slices, GLint stacks);
|
||||||
|
GLAPI void GLAPIENTRY gluTessBeginContour (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data);
|
||||||
|
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
|
||||||
|
GLAPI void GLAPIENTRY gluTessEndContour (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluTessEndPolygon (GLUtesselator* tess);
|
||||||
|
GLAPI void GLAPIENTRY gluTessNormal (GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ);
|
||||||
|
GLAPI void GLAPIENTRY gluTessProperty (GLUtesselator* tess, GLenum which, GLdouble data);
|
||||||
|
GLAPI void GLAPIENTRY gluTessVertex (GLUtesselator* tess, GLdouble *location, GLvoid* data);
|
||||||
|
GLAPI GLint GLAPIENTRY gluUnProject (GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ);
|
||||||
|
GLAPI GLint GLAPIENTRY gluUnProject4 (GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble nearVal, GLdouble farVal, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __glu_h__ */
|
86
reactos/lib/mesa32/include/GL/glu_mangle.h
Normal file
86
reactos/lib/mesa32/include/GL/glu_mangle.h
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 3.0
|
||||||
|
* Copyright (C) 1995-1998 Brian Paul
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GLU_MANGLE_H
|
||||||
|
#define GLU_MANGLE_H
|
||||||
|
|
||||||
|
|
||||||
|
#define gluLookAt mgluLookAt
|
||||||
|
#define gluOrtho2D mgluOrtho2D
|
||||||
|
#define gluPerspective mgluPerspective
|
||||||
|
#define gluPickMatrix mgluPickMatrix
|
||||||
|
#define gluProject mgluProject
|
||||||
|
#define gluUnProject mgluUnProject
|
||||||
|
#define gluErrorString mgluErrorString
|
||||||
|
#define gluScaleImage mgluScaleImage
|
||||||
|
#define gluBuild1DMipmaps mgluBuild1DMipmaps
|
||||||
|
#define gluBuild2DMipmaps mgluBuild2DMipmaps
|
||||||
|
#define gluNewQuadric mgluNewQuadric
|
||||||
|
#define gluDeleteQuadric mgluDeleteQuadric
|
||||||
|
#define gluQuadricDrawStyle mgluQuadricDrawStyle
|
||||||
|
#define gluQuadricOrientation mgluQuadricOrientation
|
||||||
|
#define gluQuadricNormals mgluQuadricNormals
|
||||||
|
#define gluQuadricTexture mgluQuadricTexture
|
||||||
|
#define gluQuadricCallback mgluQuadricCallback
|
||||||
|
#define gluCylinder mgluCylinder
|
||||||
|
#define gluSphere mgluSphere
|
||||||
|
#define gluDisk mgluDisk
|
||||||
|
#define gluPartialDisk mgluPartialDisk
|
||||||
|
#define gluNewNurbsRenderer mgluNewNurbsRenderer
|
||||||
|
#define gluDeleteNurbsRenderer mgluDeleteNurbsRenderer
|
||||||
|
#define gluLoadSamplingMatrices mgluLoadSamplingMatrices
|
||||||
|
#define gluNurbsProperty mgluNurbsProperty
|
||||||
|
#define gluGetNurbsProperty mgluGetNurbsProperty
|
||||||
|
#define gluBeginCurve mgluBeginCurve
|
||||||
|
#define gluEndCurve mgluEndCurve
|
||||||
|
#define gluNurbsCurve mgluNurbsCurve
|
||||||
|
#define gluBeginSurface mgluBeginSurface
|
||||||
|
#define gluEndSurface mgluEndSurface
|
||||||
|
#define gluNurbsSurface mgluNurbsSurface
|
||||||
|
#define gluBeginTrim mgluBeginTrim
|
||||||
|
#define gluEndTrim mgluEndTrim
|
||||||
|
#define gluPwlCurve mgluPwlCurve
|
||||||
|
#define gluNurbsCallback mgluNurbsCallback
|
||||||
|
#define gluNewTess mgluNewTess
|
||||||
|
#define gluDeleteTess mgluDeleteTess
|
||||||
|
#define gluTessBeginPolygon mgluTessBeginPolygon
|
||||||
|
#define gluTessBeginContour mgluTessBeginContour
|
||||||
|
#define gluTessVertex mgluTessVertex
|
||||||
|
#define gluTessEndPolygon mgluTessEndPolygon
|
||||||
|
#define gluTessEndContour mgluTessEndContour
|
||||||
|
#define gluTessProperty mgluTessProperty
|
||||||
|
#define gluTessNormal mgluTessNormal
|
||||||
|
#define gluTessCallback mgluTessCallback
|
||||||
|
#define gluGetTessProperty mgluGetTessProperty
|
||||||
|
#define gluBeginPolygon mgluBeginPolygon
|
||||||
|
#define gluNextContour mgluNextContour
|
||||||
|
#define gluEndPolygon mgluEndPolygon
|
||||||
|
#define gluGetString mgluGetString
|
||||||
|
#define gluBuild1DMipmapLevels mgluBuild1DMipmapLevels
|
||||||
|
#define gluBuild2DMipmapLevels mgluBuild2DMipmapLevels
|
||||||
|
#define gluBuild3DMipmapLevels mgluBuild3DMipmapLevels
|
||||||
|
#define gluBuild3DMipmaps mgluBuild3DMipmaps
|
||||||
|
#define gluCheckExtension mgluCheckExtension
|
||||||
|
#define gluUnProject4 mgluUnProject4
|
||||||
|
#define gluNurbsCallbackData mgluNurbsCallbackData
|
||||||
|
#define gluNurbsCallbackDataEXT mgluNurbsCallbackDataEXT
|
||||||
|
|
||||||
|
#endif
|
503
reactos/lib/mesa32/include/GL/glx.h
Normal file
503
reactos/lib/mesa32/include/GL/glx.h
Normal file
|
@ -0,0 +1,503 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 6.2
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999-2004 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GLX_H
|
||||||
|
#define GLX_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __VMS
|
||||||
|
#include <GL/vms_x_fix.h>
|
||||||
|
# ifdef __cplusplus
|
||||||
|
/* VMS Xlib.h gives problems with C++.
|
||||||
|
* this avoids a bunch of trivial warnings */
|
||||||
|
#pragma message disable nosimpint
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
#ifdef __VMS
|
||||||
|
# ifdef __cplusplus
|
||||||
|
#pragma message enable nosimpint
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#include <GL/gl.h>
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(USE_MGL_NAMESPACE)
|
||||||
|
#include "glx_mangle.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define GLX_VERSION_1_1 1
|
||||||
|
#define GLX_VERSION_1_2 1
|
||||||
|
#define GLX_VERSION_1_3 1
|
||||||
|
#define GLX_VERSION_1_4 1
|
||||||
|
|
||||||
|
#define GLX_EXTENSION_NAME "GLX"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tokens for glXChooseVisual and glXGetConfig:
|
||||||
|
*/
|
||||||
|
#define GLX_USE_GL 1
|
||||||
|
#define GLX_BUFFER_SIZE 2
|
||||||
|
#define GLX_LEVEL 3
|
||||||
|
#define GLX_RGBA 4
|
||||||
|
#define GLX_DOUBLEBUFFER 5
|
||||||
|
#define GLX_STEREO 6
|
||||||
|
#define GLX_AUX_BUFFERS 7
|
||||||
|
#define GLX_RED_SIZE 8
|
||||||
|
#define GLX_GREEN_SIZE 9
|
||||||
|
#define GLX_BLUE_SIZE 10
|
||||||
|
#define GLX_ALPHA_SIZE 11
|
||||||
|
#define GLX_DEPTH_SIZE 12
|
||||||
|
#define GLX_STENCIL_SIZE 13
|
||||||
|
#define GLX_ACCUM_RED_SIZE 14
|
||||||
|
#define GLX_ACCUM_GREEN_SIZE 15
|
||||||
|
#define GLX_ACCUM_BLUE_SIZE 16
|
||||||
|
#define GLX_ACCUM_ALPHA_SIZE 17
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Error codes returned by glXGetConfig:
|
||||||
|
*/
|
||||||
|
#define GLX_BAD_SCREEN 1
|
||||||
|
#define GLX_BAD_ATTRIBUTE 2
|
||||||
|
#define GLX_NO_EXTENSION 3
|
||||||
|
#define GLX_BAD_VISUAL 4
|
||||||
|
#define GLX_BAD_CONTEXT 5
|
||||||
|
#define GLX_BAD_VALUE 6
|
||||||
|
#define GLX_BAD_ENUM 7
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GLX 1.1 and later:
|
||||||
|
*/
|
||||||
|
#define GLX_VENDOR 1
|
||||||
|
#define GLX_VERSION 2
|
||||||
|
#define GLX_EXTENSIONS 3
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GLX 1.3 and later:
|
||||||
|
*/
|
||||||
|
#define GLX_CONFIG_CAVEAT 0x20
|
||||||
|
#define GLX_DONT_CARE 0xFFFFFFFF
|
||||||
|
#define GLX_X_VISUAL_TYPE 0x22
|
||||||
|
#define GLX_TRANSPARENT_TYPE 0x23
|
||||||
|
#define GLX_TRANSPARENT_INDEX_VALUE 0x24
|
||||||
|
#define GLX_TRANSPARENT_RED_VALUE 0x25
|
||||||
|
#define GLX_TRANSPARENT_GREEN_VALUE 0x26
|
||||||
|
#define GLX_TRANSPARENT_BLUE_VALUE 0x27
|
||||||
|
#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
|
||||||
|
#define GLX_WINDOW_BIT 0x00000001
|
||||||
|
#define GLX_PIXMAP_BIT 0x00000002
|
||||||
|
#define GLX_PBUFFER_BIT 0x00000004
|
||||||
|
#define GLX_AUX_BUFFERS_BIT 0x00000010
|
||||||
|
#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
|
||||||
|
#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
|
||||||
|
#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
|
||||||
|
#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
|
||||||
|
#define GLX_DEPTH_BUFFER_BIT 0x00000020
|
||||||
|
#define GLX_STENCIL_BUFFER_BIT 0x00000040
|
||||||
|
#define GLX_ACCUM_BUFFER_BIT 0x00000080
|
||||||
|
#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_VISUAL_ID 0x800B
|
||||||
|
#define GLX_SCREEN 0x800C
|
||||||
|
#define GLX_NON_CONFORMANT_CONFIG 0x800D
|
||||||
|
#define GLX_DRAWABLE_TYPE 0x8010
|
||||||
|
#define GLX_RENDER_TYPE 0x8011
|
||||||
|
#define GLX_X_RENDERABLE 0x8012
|
||||||
|
#define GLX_FBCONFIG_ID 0x8013
|
||||||
|
#define GLX_RGBA_TYPE 0x8014
|
||||||
|
#define GLX_COLOR_INDEX_TYPE 0x8015
|
||||||
|
#define GLX_MAX_PBUFFER_WIDTH 0x8016
|
||||||
|
#define GLX_MAX_PBUFFER_HEIGHT 0x8017
|
||||||
|
#define GLX_MAX_PBUFFER_PIXELS 0x8018
|
||||||
|
#define GLX_PRESERVED_CONTENTS 0x801B
|
||||||
|
#define GLX_LARGEST_PBUFFER 0x801C
|
||||||
|
#define GLX_WIDTH 0x801D
|
||||||
|
#define GLX_HEIGHT 0x801E
|
||||||
|
#define GLX_EVENT_MASK 0x801F
|
||||||
|
#define GLX_DAMAGED 0x8020
|
||||||
|
#define GLX_SAVED 0x8021
|
||||||
|
#define GLX_WINDOW 0x8022
|
||||||
|
#define GLX_PBUFFER 0x8023
|
||||||
|
#define GLX_PBUFFER_HEIGHT 0x8040
|
||||||
|
#define GLX_PBUFFER_WIDTH 0x8041
|
||||||
|
#define GLX_RGBA_BIT 0x00000001
|
||||||
|
#define GLX_COLOR_INDEX_BIT 0x00000002
|
||||||
|
#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GLX 1.4 and later:
|
||||||
|
*/
|
||||||
|
#define GLX_SAMPLE_BUFFERS 0x186a0 /*100000*/
|
||||||
|
#define GLX_SAMPLES 0x186a1 /*100001*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct __GLXcontextRec *GLXContext;
|
||||||
|
typedef XID GLXPixmap;
|
||||||
|
typedef XID GLXDrawable;
|
||||||
|
/* GLX 1.3 and later */
|
||||||
|
typedef struct __GLXFBConfigRec *GLXFBConfig;
|
||||||
|
typedef XID GLXFBConfigID;
|
||||||
|
typedef XID GLXContextID;
|
||||||
|
typedef XID GLXWindow;
|
||||||
|
typedef XID GLXPbuffer;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
extern XVisualInfo* glXChooseVisual( Display *dpy, int screen,
|
||||||
|
int *attribList );
|
||||||
|
|
||||||
|
extern GLXContext glXCreateContext( Display *dpy, XVisualInfo *vis,
|
||||||
|
GLXContext shareList, Bool direct );
|
||||||
|
|
||||||
|
extern void glXDestroyContext( Display *dpy, GLXContext ctx );
|
||||||
|
|
||||||
|
extern Bool glXMakeCurrent( Display *dpy, GLXDrawable drawable,
|
||||||
|
GLXContext ctx);
|
||||||
|
|
||||||
|
extern void glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
|
||||||
|
unsigned long mask );
|
||||||
|
|
||||||
|
extern void glXSwapBuffers( Display *dpy, GLXDrawable drawable );
|
||||||
|
|
||||||
|
extern GLXPixmap glXCreateGLXPixmap( Display *dpy, XVisualInfo *visual,
|
||||||
|
Pixmap pixmap );
|
||||||
|
|
||||||
|
extern void glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap );
|
||||||
|
|
||||||
|
extern Bool glXQueryExtension( Display *dpy, int *errorb, int *event );
|
||||||
|
|
||||||
|
extern Bool glXQueryVersion( Display *dpy, int *maj, int *min );
|
||||||
|
|
||||||
|
extern Bool glXIsDirect( Display *dpy, GLXContext ctx );
|
||||||
|
|
||||||
|
extern int glXGetConfig( Display *dpy, XVisualInfo *visual,
|
||||||
|
int attrib, int *value );
|
||||||
|
|
||||||
|
extern GLXContext glXGetCurrentContext( void );
|
||||||
|
|
||||||
|
extern GLXDrawable glXGetCurrentDrawable( void );
|
||||||
|
|
||||||
|
extern void glXWaitGL( void );
|
||||||
|
|
||||||
|
extern void glXWaitX( void );
|
||||||
|
|
||||||
|
extern void glXUseXFont( Font font, int first, int count, int list );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* GLX 1.1 and later */
|
||||||
|
extern const char *glXQueryExtensionsString( Display *dpy, int screen );
|
||||||
|
|
||||||
|
extern const char *glXQueryServerString( Display *dpy, int screen, int name );
|
||||||
|
|
||||||
|
extern const char *glXGetClientString( Display *dpy, int name );
|
||||||
|
|
||||||
|
|
||||||
|
/* GLX 1.2 and later */
|
||||||
|
extern Display *glXGetCurrentDisplay( void );
|
||||||
|
|
||||||
|
|
||||||
|
/* GLX 1.3 and later */
|
||||||
|
extern GLXFBConfig *glXChooseFBConfig( Display *dpy, int screen,
|
||||||
|
const int *attribList, int *nitems );
|
||||||
|
|
||||||
|
extern int glXGetFBConfigAttrib( Display *dpy, GLXFBConfig config,
|
||||||
|
int attribute, int *value );
|
||||||
|
|
||||||
|
extern GLXFBConfig *glXGetFBConfigs( Display *dpy, int screen,
|
||||||
|
int *nelements );
|
||||||
|
|
||||||
|
extern XVisualInfo *glXGetVisualFromFBConfig( Display *dpy,
|
||||||
|
GLXFBConfig config );
|
||||||
|
|
||||||
|
extern GLXWindow glXCreateWindow( Display *dpy, GLXFBConfig config,
|
||||||
|
Window win, const int *attribList );
|
||||||
|
|
||||||
|
extern void glXDestroyWindow( Display *dpy, GLXWindow window );
|
||||||
|
|
||||||
|
extern GLXPixmap glXCreatePixmap( Display *dpy, GLXFBConfig config,
|
||||||
|
Pixmap pixmap, const int *attribList );
|
||||||
|
|
||||||
|
extern void glXDestroyPixmap( Display *dpy, GLXPixmap pixmap );
|
||||||
|
|
||||||
|
extern GLXPbuffer glXCreatePbuffer( Display *dpy, GLXFBConfig config,
|
||||||
|
const int *attribList );
|
||||||
|
|
||||||
|
extern void glXDestroyPbuffer( Display *dpy, GLXPbuffer pbuf );
|
||||||
|
|
||||||
|
extern void glXQueryDrawable( Display *dpy, GLXDrawable draw, int attribute,
|
||||||
|
unsigned int *value );
|
||||||
|
|
||||||
|
extern GLXContext glXCreateNewContext( Display *dpy, GLXFBConfig config,
|
||||||
|
int renderType, GLXContext shareList,
|
||||||
|
Bool direct );
|
||||||
|
|
||||||
|
extern Bool glXMakeContextCurrent( Display *dpy, GLXDrawable draw,
|
||||||
|
GLXDrawable read, GLXContext ctx );
|
||||||
|
|
||||||
|
extern GLXDrawable glXGetCurrentReadDrawable( void );
|
||||||
|
|
||||||
|
extern int glXQueryContext( Display *dpy, GLXContext ctx, int attribute,
|
||||||
|
int *value );
|
||||||
|
|
||||||
|
extern void glXSelectEvent( Display *dpy, GLXDrawable drawable,
|
||||||
|
unsigned long mask );
|
||||||
|
|
||||||
|
extern void glXGetSelectedEvent( Display *dpy, GLXDrawable drawable,
|
||||||
|
unsigned long *mask );
|
||||||
|
|
||||||
|
|
||||||
|
/* GLX 1.4 and later */
|
||||||
|
extern void (*glXGetProcAddress(const GLubyte *procname))( void );
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GLX_GLXEXT_LEGACY
|
||||||
|
|
||||||
|
#include <GL/glxext.h>
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 28. GLX_EXT_visual_info extension
|
||||||
|
*/
|
||||||
|
#ifndef GLX_EXT_visual_info
|
||||||
|
#define GLX_EXT_visual_info 1
|
||||||
|
|
||||||
|
#define GLX_X_VISUAL_TYPE_EXT 0x22
|
||||||
|
#define GLX_TRANSPARENT_TYPE_EXT 0x23
|
||||||
|
#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
|
||||||
|
#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
|
||||||
|
#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
|
||||||
|
#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
|
||||||
|
#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
|
||||||
|
#define GLX_TRUE_COLOR_EXT 0x8002
|
||||||
|
#define GLX_DIRECT_COLOR_EXT 0x8003
|
||||||
|
#define GLX_PSEUDO_COLOR_EXT 0x8004
|
||||||
|
#define GLX_STATIC_COLOR_EXT 0x8005
|
||||||
|
#define GLX_GRAY_SCALE_EXT 0x8006
|
||||||
|
#define GLX_STATIC_GRAY_EXT 0x8007
|
||||||
|
#define GLX_NONE_EXT 0x8000
|
||||||
|
#define GLX_TRANSPARENT_RGB_EXT 0x8008
|
||||||
|
#define GLX_TRANSPARENT_INDEX_EXT 0x8009
|
||||||
|
|
||||||
|
#endif /* 28. GLX_EXT_visual_info extension */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 41. GLX_SGI_video_sync
|
||||||
|
*/
|
||||||
|
#ifndef GLX_SGI_video_sync
|
||||||
|
#define GLX_SGI_video_sync 1
|
||||||
|
|
||||||
|
extern int glXGetVideoSyncSGI(unsigned int *count);
|
||||||
|
extern int glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count);
|
||||||
|
|
||||||
|
#endif /* GLX_SGI_video_sync */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 42. GLX_EXT_visual_rating
|
||||||
|
*/
|
||||||
|
#ifndef GLX_EXT_visual_rating
|
||||||
|
#define GLX_EXT_visual_rating 1
|
||||||
|
|
||||||
|
#define GLX_VISUAL_CAVEAT_EXT 0x20
|
||||||
|
/*#define GLX_NONE_EXT 0x8000*/
|
||||||
|
#define GLX_SLOW_VISUAL_EXT 0x8001
|
||||||
|
#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
|
||||||
|
|
||||||
|
#endif /* GLX_EXT_visual_rating */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 47. GLX_EXT_import_context
|
||||||
|
*/
|
||||||
|
#ifndef GLX_EXT_import_context
|
||||||
|
#define GLX_EXT_import_context 1
|
||||||
|
|
||||||
|
#define GLX_SHARE_CONTEXT_EXT 0x800A
|
||||||
|
#define GLX_VISUAL_ID_EXT 0x800B
|
||||||
|
#define GLX_SCREEN_EXT 0x800C
|
||||||
|
|
||||||
|
extern void glXFreeContextEXT(Display *dpy, GLXContext context);
|
||||||
|
|
||||||
|
extern GLXContextID glXGetContextIDEXT(const GLXContext context);
|
||||||
|
|
||||||
|
extern Display *glXGetCurrentDisplayEXT(void);
|
||||||
|
|
||||||
|
extern GLXContext glXImportContextEXT(Display *dpy, GLXContextID contextID);
|
||||||
|
|
||||||
|
extern int glXQueryContextInfoEXT(Display *dpy, GLXContext context,
|
||||||
|
int attribute,int *value);
|
||||||
|
|
||||||
|
#endif /* GLX_EXT_import_context */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 215. GLX_MESA_copy_sub_buffer
|
||||||
|
*/
|
||||||
|
#ifndef GLX_MESA_copy_sub_buffer
|
||||||
|
#define GLX_MESA_copy_sub_buffer 1
|
||||||
|
|
||||||
|
extern void glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable,
|
||||||
|
int x, int y, int width, int height );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 216. GLX_MESA_pixmap_colormap
|
||||||
|
*/
|
||||||
|
#ifndef GLX_MESA_pixmap_colormap
|
||||||
|
#define GLX_MESA_pixmap_colormap 1
|
||||||
|
|
||||||
|
extern GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
|
||||||
|
Pixmap pixmap, Colormap cmap );
|
||||||
|
|
||||||
|
#endif /* GLX_MESA_pixmap_colormap */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 217. GLX_MESA_release_buffers
|
||||||
|
*/
|
||||||
|
#ifndef GLX_MESA_release_buffers
|
||||||
|
#define GLX_MESA_release_buffers 1
|
||||||
|
|
||||||
|
extern Bool glXReleaseBuffersMESA( Display *dpy, GLXDrawable d );
|
||||||
|
|
||||||
|
#endif /* GLX_MESA_release_buffers */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 218. GLX_MESA_set_3dfx_mode
|
||||||
|
*/
|
||||||
|
#ifndef GLX_MESA_set_3dfx_mode
|
||||||
|
#define GLX_MESA_set_3dfx_mode 1
|
||||||
|
|
||||||
|
#define GLX_3DFX_WINDOW_MODE_MESA 0x1
|
||||||
|
#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
|
||||||
|
|
||||||
|
extern Bool glXSet3DfxModeMESA( int mode );
|
||||||
|
|
||||||
|
#endif /* GLX_MESA_set_3dfx_mode */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ARB 2. GLX_ARB_get_proc_address
|
||||||
|
*/
|
||||||
|
#ifndef GLX_ARB_get_proc_address
|
||||||
|
#define GLX_ARB_get_proc_address 1
|
||||||
|
|
||||||
|
extern void (*glXGetProcAddressARB(const GLubyte *procName))();
|
||||||
|
|
||||||
|
#endif /* GLX_ARB_get_proc_address */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* GLX_GLXEXT_LEGACY */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
** The following aren't in glxext.h yet.
|
||||||
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ???. GLX_NV_vertex_array_range
|
||||||
|
*/
|
||||||
|
#ifndef GLX_NV_vertex_array_range
|
||||||
|
#define GLX_NV_vertex_array_range
|
||||||
|
|
||||||
|
extern void *glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
|
||||||
|
extern void glXFreeMemoryNV(GLvoid *pointer);
|
||||||
|
typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
|
||||||
|
typedef void ( * PFNGLXFREEMEMORYNVPROC) (GLvoid *pointer);
|
||||||
|
|
||||||
|
#endif /* GLX_NV_vertex_array_range */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ???. GLX_MESA_agp_offset
|
||||||
|
*/
|
||||||
|
#ifndef GLX_MESA_agp_offset
|
||||||
|
#define GLX_MESA_agp_offset 1
|
||||||
|
|
||||||
|
extern GLuint glXGetAGPOffsetMESA(const GLvoid *pointer);
|
||||||
|
typedef GLuint (* PFNGLXGETAGPOFFSETMESAPROC) (const GLvoid *pointer);
|
||||||
|
|
||||||
|
#endif /* GLX_MESA_agp_offset */
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ARB ?. GLX_ARB_render_texture
|
||||||
|
*/
|
||||||
|
#ifndef GLX_ARB_render_texture
|
||||||
|
#define GLX_ARB_render_texture 1
|
||||||
|
|
||||||
|
extern Bool glXBindTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer);
|
||||||
|
extern Bool glXReleaseTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer);
|
||||||
|
extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attribList);
|
||||||
|
|
||||||
|
#endif /* GLX_ARB_render_texture */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
55
reactos/lib/mesa32/include/GL/glx_mangle.h
Normal file
55
reactos/lib/mesa32/include/GL/glx_mangle.h
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.1
|
||||||
|
* Copyright (C) 1995-1998 Brian Paul
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef GLX_MANGLE_H
|
||||||
|
#define GLX_MANGLE_H
|
||||||
|
|
||||||
|
#define glXChooseVisual mglXChooseVisual
|
||||||
|
#define glXCreateContext mglXCreateContext
|
||||||
|
#define glXDestroyContext mglXDestroyContext
|
||||||
|
#define glXMakeCurrent mglXMakeCurrent
|
||||||
|
#define glXCopyContext mglXCopyContext
|
||||||
|
#define glXSwapBuffers mglXSwapBuffers
|
||||||
|
#define glXCreateGLXPixmap mglXCreateGLXPixmap
|
||||||
|
#define glXDestroyGLXPixmap mglXDestroyGLXPixmap
|
||||||
|
#define glXQueryExtension mglXQueryExtension
|
||||||
|
#define glXQueryVersion mglXQueryVersion
|
||||||
|
#define glXIsDirect mglXIsDirect
|
||||||
|
#define glXGetConfig mglXGetConfig
|
||||||
|
#define glXGetCurrentContext mglXGetCurrentContext
|
||||||
|
#define glXGetCurrentDrawable mglXGetCurrentDrawable
|
||||||
|
#define glXWaitGL mglXWaitGL
|
||||||
|
#define glXWaitX mglXWaitX
|
||||||
|
#define glXUseXFont mglXUseXFont
|
||||||
|
#define glXQueryExtensionsString mglXQueryExtensionsString
|
||||||
|
#define glXQueryServerString mglXQueryServerString
|
||||||
|
#define glXGetClientString mglXGetClientString
|
||||||
|
#define glXCreateGLXPixmapMESA mglXCreateGLXPixmapMESA
|
||||||
|
#define glXReleaseBuffersMESA mglXReleaseBuffersMESA
|
||||||
|
#define glXCopySubBufferMESA mglXCopySubBufferMESA
|
||||||
|
#define glXGetVideoSyncSGI mglXGetVideoSyncSGI
|
||||||
|
#define glXWaitVideoSyncSGI mglXWaitVideoSyncSGI
|
||||||
|
|
||||||
|
/* GLX 1.4 */
|
||||||
|
#define glXGetProcAddress mglXGetProcAddress
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
681
reactos/lib/mesa32/include/GL/glxext.h
Normal file
681
reactos/lib/mesa32/include/GL/glxext.h
Normal file
|
@ -0,0 +1,681 @@
|
||||||
|
#ifndef __glxext_h_
|
||||||
|
#define __glxext_h_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
** License Applicability. Except to the extent portions of this file are
|
||||||
|
** made subject to an alternative license as permitted in the SGI Free
|
||||||
|
** Software License B, Version 1.1 (the "License"), the contents of this
|
||||||
|
** file are subject only to the provisions of the License. You may not use
|
||||||
|
** this file except in compliance with the License. You may obtain a copy
|
||||||
|
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||||
|
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||||
|
**
|
||||||
|
** http://oss.sgi.com/projects/FreeB
|
||||||
|
**
|
||||||
|
** Note that, as provided in the License, the Software is distributed on an
|
||||||
|
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||||
|
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||||
|
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||||
|
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||||
|
**
|
||||||
|
** Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||||
|
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||||
|
** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
|
||||||
|
** Copyright in any portions created by third parties is as indicated
|
||||||
|
** elsewhere herein. All Rights Reserved.
|
||||||
|
**
|
||||||
|
** Additional Notice Provisions: This software was created using the
|
||||||
|
** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
|
||||||
|
** not been independently verified as being compliant with the OpenGL(R)
|
||||||
|
** version 1.2.1 Specification.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
|
||||||
|
#define WIN32_LEAN_AND_MEAN 1
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef APIENTRY
|
||||||
|
#define APIENTRY
|
||||||
|
#endif
|
||||||
|
#ifndef APIENTRYP
|
||||||
|
#define APIENTRYP APIENTRY *
|
||||||
|
#endif
|
||||||
|
#ifndef GLAPI
|
||||||
|
#define GLAPI extern
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*************************************************************/
|
||||||
|
|
||||||
|
/* Header file version number, required by OpenGL ABI for Linux */
|
||||||
|
/* glxext.h last updated 2004/07/26 */
|
||||||
|
/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
|
||||||
|
#define GLX_GLXEXT_VERSION 6
|
||||||
|
|
||||||
|
#ifndef GLX_VERSION_1_3
|
||||||
|
#define GLX_WINDOW_BIT 0x00000001
|
||||||
|
#define GLX_PIXMAP_BIT 0x00000002
|
||||||
|
#define GLX_PBUFFER_BIT 0x00000004
|
||||||
|
#define GLX_RGBA_BIT 0x00000001
|
||||||
|
#define GLX_COLOR_INDEX_BIT 0x00000002
|
||||||
|
#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
|
||||||
|
#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
|
||||||
|
#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
|
||||||
|
#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
|
||||||
|
#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
|
||||||
|
#define GLX_AUX_BUFFERS_BIT 0x00000010
|
||||||
|
#define GLX_DEPTH_BUFFER_BIT 0x00000020
|
||||||
|
#define GLX_STENCIL_BUFFER_BIT 0x00000040
|
||||||
|
#define GLX_ACCUM_BUFFER_BIT 0x00000080
|
||||||
|
#define GLX_CONFIG_CAVEAT 0x20
|
||||||
|
#define GLX_X_VISUAL_TYPE 0x22
|
||||||
|
#define GLX_TRANSPARENT_TYPE 0x23
|
||||||
|
#define GLX_TRANSPARENT_INDEX_VALUE 0x24
|
||||||
|
#define GLX_TRANSPARENT_RED_VALUE 0x25
|
||||||
|
#define GLX_TRANSPARENT_GREEN_VALUE 0x26
|
||||||
|
#define GLX_TRANSPARENT_BLUE_VALUE 0x27
|
||||||
|
#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
|
||||||
|
#define GLX_DONT_CARE 0xFFFFFFFF
|
||||||
|
#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_VISUAL_ID 0x800B
|
||||||
|
#define GLX_SCREEN 0x800C
|
||||||
|
#define GLX_NON_CONFORMANT_CONFIG 0x800D
|
||||||
|
#define GLX_DRAWABLE_TYPE 0x8010
|
||||||
|
#define GLX_RENDER_TYPE 0x8011
|
||||||
|
#define GLX_X_RENDERABLE 0x8012
|
||||||
|
#define GLX_FBCONFIG_ID 0x8013
|
||||||
|
#define GLX_RGBA_TYPE 0x8014
|
||||||
|
#define GLX_COLOR_INDEX_TYPE 0x8015
|
||||||
|
#define GLX_MAX_PBUFFER_WIDTH 0x8016
|
||||||
|
#define GLX_MAX_PBUFFER_HEIGHT 0x8017
|
||||||
|
#define GLX_MAX_PBUFFER_PIXELS 0x8018
|
||||||
|
#define GLX_PRESERVED_CONTENTS 0x801B
|
||||||
|
#define GLX_LARGEST_PBUFFER 0x801C
|
||||||
|
#define GLX_WIDTH 0x801D
|
||||||
|
#define GLX_HEIGHT 0x801E
|
||||||
|
#define GLX_EVENT_MASK 0x801F
|
||||||
|
#define GLX_DAMAGED 0x8020
|
||||||
|
#define GLX_SAVED 0x8021
|
||||||
|
#define GLX_WINDOW 0x8022
|
||||||
|
#define GLX_PBUFFER 0x8023
|
||||||
|
#define GLX_PBUFFER_HEIGHT 0x8040
|
||||||
|
#define GLX_PBUFFER_WIDTH 0x8041
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_VERSION_1_4
|
||||||
|
#define GLX_SAMPLE_BUFFERS 100000
|
||||||
|
#define GLX_SAMPLES 100001
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_ARB_get_proc_address
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_ARB_multisample
|
||||||
|
#define GLX_SAMPLE_BUFFERS_ARB 100000
|
||||||
|
#define GLX_SAMPLES_ARB 100001
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIS_multisample
|
||||||
|
#define GLX_SAMPLE_BUFFERS_SGIS 100000
|
||||||
|
#define GLX_SAMPLES_SGIS 100001
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_visual_info
|
||||||
|
#define GLX_X_VISUAL_TYPE_EXT 0x22
|
||||||
|
#define GLX_TRANSPARENT_TYPE_EXT 0x23
|
||||||
|
#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
|
||||||
|
#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
|
||||||
|
#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
|
||||||
|
#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
|
||||||
|
#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
|
||||||
|
#define GLX_NONE_EXT 0x8000
|
||||||
|
#define GLX_TRUE_COLOR_EXT 0x8002
|
||||||
|
#define GLX_DIRECT_COLOR_EXT 0x8003
|
||||||
|
#define GLX_PSEUDO_COLOR_EXT 0x8004
|
||||||
|
#define GLX_STATIC_COLOR_EXT 0x8005
|
||||||
|
#define GLX_GRAY_SCALE_EXT 0x8006
|
||||||
|
#define GLX_STATIC_GRAY_EXT 0x8007
|
||||||
|
#define GLX_TRANSPARENT_RGB_EXT 0x8008
|
||||||
|
#define GLX_TRANSPARENT_INDEX_EXT 0x8009
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_swap_control
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_video_sync
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_make_current_read
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_video_source
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_visual_rating
|
||||||
|
#define GLX_VISUAL_CAVEAT_EXT 0x20
|
||||||
|
#define GLX_SLOW_VISUAL_EXT 0x8001
|
||||||
|
#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
|
||||||
|
/* reuse GLX_NONE_EXT */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_import_context
|
||||||
|
#define GLX_SHARE_CONTEXT_EXT 0x800A
|
||||||
|
#define GLX_VISUAL_ID_EXT 0x800B
|
||||||
|
#define GLX_SCREEN_EXT 0x800C
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_fbconfig
|
||||||
|
#define GLX_WINDOW_BIT_SGIX 0x00000001
|
||||||
|
#define GLX_PIXMAP_BIT_SGIX 0x00000002
|
||||||
|
#define GLX_RGBA_BIT_SGIX 0x00000001
|
||||||
|
#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
|
||||||
|
#define GLX_DRAWABLE_TYPE_SGIX 0x8010
|
||||||
|
#define GLX_RENDER_TYPE_SGIX 0x8011
|
||||||
|
#define GLX_X_RENDERABLE_SGIX 0x8012
|
||||||
|
#define GLX_FBCONFIG_ID_SGIX 0x8013
|
||||||
|
#define GLX_RGBA_TYPE_SGIX 0x8014
|
||||||
|
#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
|
||||||
|
/* reuse GLX_SCREEN_EXT */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_pbuffer
|
||||||
|
#define GLX_PBUFFER_BIT_SGIX 0x00000004
|
||||||
|
#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
|
||||||
|
#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
|
||||||
|
#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
|
||||||
|
#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
|
||||||
|
#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
|
||||||
|
#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
|
||||||
|
#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
|
||||||
|
#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
|
||||||
|
#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
|
||||||
|
#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
|
||||||
|
#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
|
||||||
|
#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
|
||||||
|
#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
|
||||||
|
#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
|
||||||
|
#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
|
||||||
|
#define GLX_PRESERVED_CONTENTS_SGIX 0x801B
|
||||||
|
#define GLX_LARGEST_PBUFFER_SGIX 0x801C
|
||||||
|
#define GLX_WIDTH_SGIX 0x801D
|
||||||
|
#define GLX_HEIGHT_SGIX 0x801E
|
||||||
|
#define GLX_EVENT_MASK_SGIX 0x801F
|
||||||
|
#define GLX_DAMAGED_SGIX 0x8020
|
||||||
|
#define GLX_SAVED_SGIX 0x8021
|
||||||
|
#define GLX_WINDOW_SGIX 0x8022
|
||||||
|
#define GLX_PBUFFER_SGIX 0x8023
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_cushion
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_video_resize
|
||||||
|
#define GLX_SYNC_FRAME_SGIX 0x00000000
|
||||||
|
#define GLX_SYNC_SWAP_SGIX 0x00000001
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_dmbuffer
|
||||||
|
#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_swap_group
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_swap_barrier
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIS_blended_overlay
|
||||||
|
#define GLX_BLENDED_RGBA_SGIS 0x8025
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIS_shared_multisample
|
||||||
|
#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
|
||||||
|
#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SUN_get_transparent_index
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_3DFX_multisample
|
||||||
|
#define GLX_SAMPLE_BUFFERS_3DFX 0x8050
|
||||||
|
#define GLX_SAMPLES_3DFX 0x8051
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_copy_sub_buffer
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_pixmap_colormap
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_release_buffers
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_set_3dfx_mode
|
||||||
|
#define GLX_3DFX_WINDOW_MODE_MESA 0x1
|
||||||
|
#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_visual_select_group
|
||||||
|
#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_OML_swap_method
|
||||||
|
#define GLX_SWAP_METHOD_OML 0x8060
|
||||||
|
#define GLX_SWAP_EXCHANGE_OML 0x8061
|
||||||
|
#define GLX_SWAP_COPY_OML 0x8062
|
||||||
|
#define GLX_SWAP_UNDEFINED_OML 0x8063
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_OML_sync_control
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_hyperpipe_group
|
||||||
|
#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
|
||||||
|
#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
|
||||||
|
#define GLX_BAD_HYPERPIPE_SGIX 92
|
||||||
|
#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
|
||||||
|
#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
|
||||||
|
#define GLX_PIPE_RECT_SGIX 0x00000001
|
||||||
|
#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
|
||||||
|
#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
|
||||||
|
#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
|
||||||
|
#define GLX_HYPERPIPE_ID_SGIX 0x8030
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_agp_offset
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*************************************************************/
|
||||||
|
|
||||||
|
#ifndef GLX_ARB_get_proc_address
|
||||||
|
typedef void (*__GLXextFuncPtr)(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_video_source
|
||||||
|
typedef XID GLXVideoSourceSGIX;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_fbconfig
|
||||||
|
typedef XID GLXFBConfigIDSGIX;
|
||||||
|
typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_pbuffer
|
||||||
|
typedef XID GLXPbufferSGIX;
|
||||||
|
typedef struct {
|
||||||
|
int type;
|
||||||
|
unsigned long serial; /* # of last request processed by server */
|
||||||
|
Bool send_event; /* true if this came for SendEvent request */
|
||||||
|
Display *display; /* display the event was read from */
|
||||||
|
GLXDrawable drawable; /* i.d. of Drawable */
|
||||||
|
int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
|
||||||
|
int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
|
||||||
|
unsigned int mask; /* mask indicating which buffers are affected*/
|
||||||
|
int x, y;
|
||||||
|
int width, height;
|
||||||
|
int count; /* if nonzero, at least this many more */
|
||||||
|
} GLXBufferClobberEventSGIX;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_VERSION_1_3
|
||||||
|
#define GLX_VERSION_1_3 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
|
||||||
|
extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
|
||||||
|
extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
|
||||||
|
extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
|
||||||
|
extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
|
||||||
|
extern void glXDestroyWindow (Display *, GLXWindow);
|
||||||
|
extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
|
||||||
|
extern void glXDestroyPixmap (Display *, GLXPixmap);
|
||||||
|
extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
|
||||||
|
extern void glXDestroyPbuffer (Display *, GLXPbuffer);
|
||||||
|
extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
|
||||||
|
extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
|
||||||
|
extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
|
||||||
|
extern GLXDrawable glXGetCurrentReadDrawable (void);
|
||||||
|
extern Display * glXGetCurrentDisplay (void);
|
||||||
|
extern int glXQueryContext (Display *, GLXContext, int, int *);
|
||||||
|
extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
|
||||||
|
extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
|
||||||
|
typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
|
||||||
|
typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
|
||||||
|
typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
|
||||||
|
typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
|
||||||
|
typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
|
||||||
|
typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
|
||||||
|
typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
|
||||||
|
typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
|
||||||
|
typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
|
||||||
|
typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
|
||||||
|
typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
|
||||||
|
typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
|
||||||
|
typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
|
||||||
|
typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
|
||||||
|
typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
|
||||||
|
typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
|
||||||
|
typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_VERSION_1_4
|
||||||
|
#define GLX_VERSION_1_4 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_ARB_get_proc_address
|
||||||
|
#define GLX_ARB_get_proc_address 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_ARB_multisample
|
||||||
|
#define GLX_ARB_multisample 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIS_multisample
|
||||||
|
#define GLX_SGIS_multisample 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_visual_info
|
||||||
|
#define GLX_EXT_visual_info 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_swap_control
|
||||||
|
#define GLX_SGI_swap_control 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern int glXSwapIntervalSGI (int);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_video_sync
|
||||||
|
#define GLX_SGI_video_sync 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern int glXGetVideoSyncSGI (unsigned int *);
|
||||||
|
extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
|
||||||
|
typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_make_current_read
|
||||||
|
#define GLX_SGI_make_current_read 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
|
||||||
|
extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
|
||||||
|
typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_video_source
|
||||||
|
#define GLX_SGIX_video_source 1
|
||||||
|
#ifdef _VL_H
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
|
||||||
|
extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
|
||||||
|
typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
|
||||||
|
#endif /* _VL_H */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_visual_rating
|
||||||
|
#define GLX_EXT_visual_rating 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_EXT_import_context
|
||||||
|
#define GLX_EXT_import_context 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Display * glXGetCurrentDisplayEXT (void);
|
||||||
|
extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
|
||||||
|
extern GLXContextID glXGetContextIDEXT (const GLXContext);
|
||||||
|
extern GLXContext glXImportContextEXT (Display *, GLXContextID);
|
||||||
|
extern void glXFreeContextEXT (Display *, GLXContext);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
|
||||||
|
typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
|
||||||
|
typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
|
||||||
|
typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
|
||||||
|
typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_fbconfig
|
||||||
|
#define GLX_SGIX_fbconfig 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
|
||||||
|
extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
|
||||||
|
extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
|
||||||
|
extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
|
||||||
|
extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
|
||||||
|
extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
|
||||||
|
typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
|
||||||
|
typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
|
||||||
|
typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
|
||||||
|
typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
|
||||||
|
typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_pbuffer
|
||||||
|
#define GLX_SGIX_pbuffer 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
|
||||||
|
extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
|
||||||
|
extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
|
||||||
|
extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
|
||||||
|
extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
|
||||||
|
typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
|
||||||
|
typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
|
||||||
|
typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
|
||||||
|
typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGI_cushion
|
||||||
|
#define GLX_SGI_cushion 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern void glXCushionSGI (Display *, Window, float);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_video_resize
|
||||||
|
#define GLX_SGIX_video_resize 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
|
||||||
|
extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
|
||||||
|
extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
|
||||||
|
extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
|
||||||
|
extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
|
||||||
|
typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
|
||||||
|
typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
|
||||||
|
typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
|
||||||
|
typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_dmbuffer
|
||||||
|
#define GLX_SGIX_dmbuffer 1
|
||||||
|
#ifdef _DM_BUFFER_H_
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
|
||||||
|
#endif /* _DM_BUFFER_H_ */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_swap_group
|
||||||
|
#define GLX_SGIX_swap_group 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_swap_barrier
|
||||||
|
#define GLX_SGIX_swap_barrier 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
|
||||||
|
extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
|
||||||
|
typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SUN_get_transparent_index
|
||||||
|
#define GLX_SUN_get_transparent_index 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_copy_sub_buffer
|
||||||
|
#define GLX_MESA_copy_sub_buffer 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_pixmap_colormap
|
||||||
|
#define GLX_MESA_pixmap_colormap 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_release_buffers
|
||||||
|
#define GLX_MESA_release_buffers 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_set_3dfx_mode
|
||||||
|
#define GLX_MESA_set_3dfx_mode 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Bool glXSet3DfxModeMESA (int);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_visual_select_group
|
||||||
|
#define GLX_SGIX_visual_select_group 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_OML_swap_method
|
||||||
|
#define GLX_OML_swap_method 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_OML_sync_control
|
||||||
|
#define GLX_OML_sync_control 1
|
||||||
|
#if defined(__STDC_VERSION__)
|
||||||
|
#if __STDC_VERSION__ >= 199901L
|
||||||
|
/* Include ISO C99 integer types for OML_sync_control; need a better test */
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
|
||||||
|
extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
|
||||||
|
extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
|
||||||
|
extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
|
||||||
|
extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
|
||||||
|
typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
|
||||||
|
typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
|
||||||
|
typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
|
||||||
|
typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
|
||||||
|
#endif /* C99 version test */
|
||||||
|
#endif /* STDC test */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_SGIX_hyperpipe_group
|
||||||
|
#define GLX_SGIX_hyperpipe_group 1
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
|
||||||
|
int networkId;
|
||||||
|
} GLXHyperpipeNetworkSGIX;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
|
||||||
|
int channel;
|
||||||
|
unsigned int
|
||||||
|
participationType;
|
||||||
|
int timeSlice;
|
||||||
|
} GLXHyperpipeConfigSGIX;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
|
||||||
|
int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
|
||||||
|
int destXOrigin, destYOrigin, destWidth, destHeight;
|
||||||
|
} GLXPipeRect;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
|
||||||
|
int XOrigin, YOrigin, maxHeight, maxWidth;
|
||||||
|
} GLXPipeRectLimits;
|
||||||
|
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
|
||||||
|
extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
|
||||||
|
extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
|
||||||
|
extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
|
||||||
|
extern int glXBindHyperpipeSGIX (Display *, int);
|
||||||
|
extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
|
||||||
|
extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
|
||||||
|
extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
|
||||||
|
typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
|
||||||
|
typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
|
||||||
|
typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
|
||||||
|
typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
|
||||||
|
typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
|
||||||
|
typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
|
||||||
|
typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GLX_MESA_agp_offset
|
||||||
|
#define GLX_MESA_agp_offset 1
|
||||||
|
#ifdef GLX_GLXEXT_PROTOTYPES
|
||||||
|
extern unsigned int glXGetAGPOffsetMESA (const void *);
|
||||||
|
#endif /* GLX_GLXEXT_PROTOTYPES */
|
||||||
|
typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
498
reactos/lib/mesa32/include/GL/internal/glcore.h
Normal file
498
reactos/lib/mesa32/include/GL/internal/glcore.h
Normal file
|
@ -0,0 +1,498 @@
|
||||||
|
/* $XFree86: xc/lib/GL/include/GL/internal/glcore.h,v 1.7 2001/03/25 05:32:00 tsi Exp $ */
|
||||||
|
#ifndef __gl_core_h_
|
||||||
|
#define __gl_core_h_
|
||||||
|
|
||||||
|
/*
|
||||||
|
** License Applicability. Except to the extent portions of this file are
|
||||||
|
** made subject to an alternative license as permitted in the SGI Free
|
||||||
|
** Software License B, Version 1.1 (the "License"), the contents of this
|
||||||
|
** file are subject only to the provisions of the License. You may not use
|
||||||
|
** this file except in compliance with the License. You may obtain a copy
|
||||||
|
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||||
|
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||||
|
**
|
||||||
|
** http://oss.sgi.com/projects/FreeB
|
||||||
|
**
|
||||||
|
** Note that, as provided in the License, the Software is distributed on an
|
||||||
|
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||||
|
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||||
|
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||||
|
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||||
|
**
|
||||||
|
** Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||||
|
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||||
|
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
||||||
|
** Copyright in any portions created by third parties is as indicated
|
||||||
|
** elsewhere herein. All Rights Reserved.
|
||||||
|
**
|
||||||
|
** Additional Notice Provisions: The application programming interfaces
|
||||||
|
** established by SGI in conjunction with the Original Code are The
|
||||||
|
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
|
||||||
|
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
|
||||||
|
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
|
||||||
|
** Window System(R) (Version 1.3), released October 19, 1998. This software
|
||||||
|
** was created using the OpenGL(R) version 1.2.1 Sample Implementation
|
||||||
|
** published by SGI, but has not been independently verified as being
|
||||||
|
** compliant with the OpenGL(R) version 1.2.1 Specification.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef XFree86LOADER
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CAPI
|
||||||
|
#undef CAPI
|
||||||
|
#endif
|
||||||
|
#define CAPI
|
||||||
|
|
||||||
|
#define GL_CORE_SGI 1
|
||||||
|
#define GL_CORE_MESA 2
|
||||||
|
#define GL_CORE_APPLE 4
|
||||||
|
|
||||||
|
typedef struct __GLcontextRec __GLcontext;
|
||||||
|
typedef struct __GLinterfaceRec __GLinterface;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** 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.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
} __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
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Structure used for allocating and freeing drawable private memory.
|
||||||
|
** (like software buffers, for example).
|
||||||
|
**
|
||||||
|
** The memory allocation routines are provided by the surrounding
|
||||||
|
** "operating system" code, and they are to be used for allocating
|
||||||
|
** software buffers and things which are associated with the drawable,
|
||||||
|
** and used by any context which draws to that drawable. There are
|
||||||
|
** separate memory allocation functions for drawables and contexts
|
||||||
|
** since drawables and contexts can be created and destroyed independently
|
||||||
|
** of one another, and the "operating system" may want to use separate
|
||||||
|
** allocation arenas for each.
|
||||||
|
**
|
||||||
|
** The freePrivate function is filled in by the core routines when they
|
||||||
|
** allocates software buffers, and stick them in "private". The freePrivate
|
||||||
|
** function will destroy anything allocated to this drawable (to be called
|
||||||
|
** when the drawable is destroyed).
|
||||||
|
*/
|
||||||
|
typedef struct __GLdrawableRegionRec __GLdrawableRegion;
|
||||||
|
typedef struct __GLdrawableBufferRec __GLdrawableBuffer;
|
||||||
|
typedef struct __GLdrawablePrivateRec __GLdrawablePrivate;
|
||||||
|
|
||||||
|
typedef struct __GLregionRectRec {
|
||||||
|
/* lower left (inside the rectangle) */
|
||||||
|
GLint x0, y0;
|
||||||
|
/* upper right (outside the rectangle) */
|
||||||
|
GLint x1, y1;
|
||||||
|
} __GLregionRect;
|
||||||
|
|
||||||
|
struct __GLdrawableRegionRec {
|
||||||
|
GLint numRects;
|
||||||
|
__GLregionRect *rects;
|
||||||
|
__GLregionRect boundingRect;
|
||||||
|
};
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
|
||||||
|
/* masks for the buffers */
|
||||||
|
#define __GL_FRONT_BUFFER_MASK 0x00000001
|
||||||
|
#define __GL_FRONT_LEFT_BUFFER_MASK 0x00000001
|
||||||
|
#define __GL_FRONT_RIGHT_BUFFER_MASK 0x00000002
|
||||||
|
#define __GL_BACK_BUFFER_MASK 0x00000004
|
||||||
|
#define __GL_BACK_LEFT_BUFFER_MASK 0x00000004
|
||||||
|
#define __GL_BACK_RIGHT_BUFFER_MASK 0x00000008
|
||||||
|
#define __GL_ACCUM_BUFFER_MASK 0x00000010
|
||||||
|
#define __GL_DEPTH_BUFFER_MASK 0x00000020
|
||||||
|
#define __GL_STENCIL_BUFFER_MASK 0x00000040
|
||||||
|
#define __GL_AUX_BUFFER_MASK(i) (0x0000080 << (i))
|
||||||
|
|
||||||
|
#define __GL_ALL_BUFFER_MASK 0xffffffff
|
||||||
|
|
||||||
|
/* what Resize routines return if resize resorted to fallback case */
|
||||||
|
#define __GL_BUFFER_FALLBACK 0x10
|
||||||
|
|
||||||
|
typedef void (*__GLbufFallbackInitFn)(__GLdrawableBuffer *buf,
|
||||||
|
__GLdrawablePrivate *glPriv, GLint bits);
|
||||||
|
typedef void (*__GLbufMainInitFn)(__GLdrawableBuffer *buf,
|
||||||
|
__GLdrawablePrivate *glPriv, GLint bits,
|
||||||
|
__GLbufFallbackInitFn back);
|
||||||
|
|
||||||
|
/*
|
||||||
|
** A drawable buffer
|
||||||
|
**
|
||||||
|
** This data structure describes the context side of a drawable.
|
||||||
|
**
|
||||||
|
** According to the spec there could be multiple contexts bound to the same
|
||||||
|
** drawable at the same time (from different threads). In order to avoid
|
||||||
|
** multiple-access conflicts, locks are used to serialize access. When a
|
||||||
|
** thread needs to access (read or write) a member of the drawable, it takes
|
||||||
|
** a lock first. Some of the entries in the drawable are treated "mostly
|
||||||
|
** constant", so we take the freedom of allowing access to them without
|
||||||
|
** taking a lock (for optimization reasons).
|
||||||
|
**
|
||||||
|
** For more details regarding locking, see buffers.h in the GL core
|
||||||
|
*/
|
||||||
|
struct __GLdrawableBufferRec {
|
||||||
|
/*
|
||||||
|
** Buffer dimensions
|
||||||
|
*/
|
||||||
|
GLint width, height, depth;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Framebuffer base address
|
||||||
|
*/
|
||||||
|
void *base;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Framebuffer size (in bytes)
|
||||||
|
*/
|
||||||
|
GLuint size;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Size (in bytes) of each element in the framebuffer
|
||||||
|
*/
|
||||||
|
GLuint elementSize;
|
||||||
|
GLuint elementSizeLog2;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Element skip from one scanline to the next.
|
||||||
|
** If the buffer is part of another buffer (for example, fullscreen
|
||||||
|
** front buffer), outerWidth is the width of that buffer.
|
||||||
|
*/
|
||||||
|
GLint outerWidth;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** outerWidth * elementSize
|
||||||
|
*/
|
||||||
|
GLint byteWidth;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Allocation/deallocation is done based on this handle. A handle
|
||||||
|
** is conceptually different from the framebuffer 'base'.
|
||||||
|
*/
|
||||||
|
void *handle;
|
||||||
|
|
||||||
|
/* imported */
|
||||||
|
GLboolean (*resize)(__GLdrawableBuffer *buf,
|
||||||
|
GLint x, GLint y, GLuint width, GLuint height,
|
||||||
|
__GLdrawablePrivate *glPriv, GLuint bufferMask);
|
||||||
|
void (*lock)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
|
||||||
|
void (*unlock)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
|
||||||
|
void (*fill)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv,
|
||||||
|
GLuint val, GLint x, GLint y, GLint w, GLint h);
|
||||||
|
void (*free)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
|
||||||
|
|
||||||
|
/* exported */
|
||||||
|
void (*freePrivate)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
void *privatePtr;
|
||||||
|
#else
|
||||||
|
void *private;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* private */
|
||||||
|
void *other; /* implementation private data */
|
||||||
|
__GLbufMainInitFn mainInit;
|
||||||
|
__GLbufFallbackInitFn fallbackInit;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
** The context side of the drawable private
|
||||||
|
*/
|
||||||
|
struct __GLdrawablePrivateRec {
|
||||||
|
/*
|
||||||
|
** Drawable Modes
|
||||||
|
*/
|
||||||
|
__GLcontextModes *modes;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Drawable size
|
||||||
|
*/
|
||||||
|
GLuint width, height;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Origin in screen coordinates of the drawable
|
||||||
|
*/
|
||||||
|
GLint xOrigin, yOrigin;
|
||||||
|
#ifdef __GL_ALIGNED_BUFFERS
|
||||||
|
/*
|
||||||
|
** Drawable offset from screen origin
|
||||||
|
*/
|
||||||
|
GLint xOffset, yOffset;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Alignment restriction
|
||||||
|
*/
|
||||||
|
GLint xAlignment, yAlignment;
|
||||||
|
#endif
|
||||||
|
/*
|
||||||
|
** Should we invert the y axis?
|
||||||
|
*/
|
||||||
|
GLint yInverted;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Mask specifying which buffers are renderable by the hw
|
||||||
|
*/
|
||||||
|
GLuint accelBufferMask;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** the buffers themselves
|
||||||
|
*/
|
||||||
|
__GLdrawableBuffer frontBuffer;
|
||||||
|
__GLdrawableBuffer backBuffer;
|
||||||
|
__GLdrawableBuffer accumBuffer;
|
||||||
|
__GLdrawableBuffer depthBuffer;
|
||||||
|
__GLdrawableBuffer stencilBuffer;
|
||||||
|
#if defined(__GL_NUMBER_OF_AUX_BUFFERS) && (__GL_NUMBER_OF_AUX_BUFFERS > 0)
|
||||||
|
__GLdrawableBuffer *auxBuffer;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
__GLdrawableRegion ownershipRegion;
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Lock for the drawable private structure
|
||||||
|
*/
|
||||||
|
void *lock;
|
||||||
|
#ifdef DEBUG
|
||||||
|
/* lock debugging info */
|
||||||
|
int lockRefCount;
|
||||||
|
int lockLine[10];
|
||||||
|
char *lockFile[10];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* imported */
|
||||||
|
void *(*malloc)(size_t size);
|
||||||
|
void *(*calloc)(size_t numElem, size_t elemSize);
|
||||||
|
void *(*realloc)(void *oldAddr, size_t newSize);
|
||||||
|
void (*free)(void *addr);
|
||||||
|
|
||||||
|
GLboolean (*addSwapRect)(__GLdrawablePrivate *glPriv,
|
||||||
|
GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
void (*setClipRect)(__GLdrawablePrivate *glPriv,
|
||||||
|
GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
void (*updateClipRegion)(__GLdrawablePrivate *glPriv);
|
||||||
|
GLboolean (*resize)(__GLdrawablePrivate *glPriv);
|
||||||
|
void (*getDrawableSize)(__GLdrawablePrivate *glPriv,
|
||||||
|
GLint *x, GLint *y, GLuint *width, GLuint *height);
|
||||||
|
|
||||||
|
void (*lockDP)(__GLdrawablePrivate *glPriv, __GLcontext *gc);
|
||||||
|
void (*unlockDP)(__GLdrawablePrivate *glPriv);
|
||||||
|
|
||||||
|
/* exported */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
void *privatePtr;
|
||||||
|
#else
|
||||||
|
void *private;
|
||||||
|
#endif
|
||||||
|
void (*freePrivate)(__GLdrawablePrivate *);
|
||||||
|
|
||||||
|
/* client data */
|
||||||
|
void *other;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Macros to lock/unlock the drawable private
|
||||||
|
*/
|
||||||
|
#if defined(DEBUG)
|
||||||
|
#define __GL_LOCK_DP(glPriv,gc) \
|
||||||
|
(*(glPriv)->lockDP)(glPriv,gc); \
|
||||||
|
(glPriv)->lockLine[(glPriv)->lockRefCount] = __LINE__; \
|
||||||
|
(glPriv)->lockFile[(glPriv)->lockRefCount] = __FILE__; \
|
||||||
|
(glPriv)->lockRefCount++
|
||||||
|
#define __GL_UNLOCK_DP(glPriv) \
|
||||||
|
(glPriv)->lockRefCount--; \
|
||||||
|
(glPriv)->lockLine[(glPriv)->lockRefCount] = 0; \
|
||||||
|
(glPriv)->lockFile[(glPriv)->lockRefCount] = NULL; \
|
||||||
|
(*(glPriv)->unlockDP)(glPriv)
|
||||||
|
#else /* DEBUG */
|
||||||
|
#define __GL_LOCK_DP(glPriv,gc) (*(glPriv)->lockDP)(glPriv,gc)
|
||||||
|
#define __GL_UNLOCK_DP(glPriv) (*(glPriv)->unlockDP)(glPriv)
|
||||||
|
#endif /* DEBUG */
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Procedures which are imported by the GL from the surrounding
|
||||||
|
** "operating system". Math functions are not considered part of the
|
||||||
|
** "operating system".
|
||||||
|
*/
|
||||||
|
typedef struct __GLimportsRec {
|
||||||
|
/* Memory management */
|
||||||
|
void * (*malloc)(__GLcontext *gc, size_t size);
|
||||||
|
void *(*calloc)(__GLcontext *gc, size_t numElem, size_t elemSize);
|
||||||
|
void *(*realloc)(__GLcontext *gc, void *oldAddr, size_t newSize);
|
||||||
|
void (*free)(__GLcontext *gc, void *addr);
|
||||||
|
|
||||||
|
/* Error handling */
|
||||||
|
void (*warning)(__GLcontext *gc, char *fmt);
|
||||||
|
void (*fatal)(__GLcontext *gc, char *fmt);
|
||||||
|
|
||||||
|
/* other system calls */
|
||||||
|
char *(CAPI *getenv)(__GLcontext *gc, const char *var);
|
||||||
|
int (CAPI *atoi)(__GLcontext *gc, const char *str);
|
||||||
|
int (CAPI *sprintf)(__GLcontext *gc, char *str, const char *fmt, ...);
|
||||||
|
void *(CAPI *fopen)(__GLcontext *gc, const char *path, const char *mode);
|
||||||
|
int (CAPI *fclose)(__GLcontext *gc, void *stream);
|
||||||
|
int (CAPI *fprintf)(__GLcontext *gc, void *stream, const char *fmt, ...);
|
||||||
|
|
||||||
|
/* Drawing surface management */
|
||||||
|
__GLdrawablePrivate *(*getDrawablePrivate)(__GLcontext *gc);
|
||||||
|
__GLdrawablePrivate *(*getReadablePrivate)(__GLcontext *gc);
|
||||||
|
|
||||||
|
/* Operating system dependent data goes here */
|
||||||
|
void *other;
|
||||||
|
} __GLimports;
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Procedures which are exported by the GL to the surrounding "operating
|
||||||
|
** system" so that it can manage multiple GL context's.
|
||||||
|
*/
|
||||||
|
typedef struct __GLexportsRec {
|
||||||
|
/* Context management (return GL_FALSE on failure) */
|
||||||
|
GLboolean (*destroyContext)(__GLcontext *gc);
|
||||||
|
GLboolean (*loseCurrent)(__GLcontext *gc);
|
||||||
|
/* oldglPriv isn't used anymore, kept for backwards compatibility */
|
||||||
|
GLboolean (*makeCurrent)(__GLcontext *gc);
|
||||||
|
GLboolean (*shareContext)(__GLcontext *gc, __GLcontext *gcShare);
|
||||||
|
GLboolean (*copyContext)(__GLcontext *dst, const __GLcontext *src, GLuint mask);
|
||||||
|
GLboolean (*forceCurrent)(__GLcontext *gc);
|
||||||
|
|
||||||
|
/* Drawing surface notification callbacks */
|
||||||
|
GLboolean (*notifyResize)(__GLcontext *gc);
|
||||||
|
void (*notifyDestroy)(__GLcontext *gc);
|
||||||
|
void (*notifySwapBuffers)(__GLcontext *gc);
|
||||||
|
|
||||||
|
/* Dispatch table override control for external agents like libGLS */
|
||||||
|
struct __GLdispatchStateRec* (*dispatchExec)(__GLcontext *gc);
|
||||||
|
void (*beginDispatchOverride)(__GLcontext *gc);
|
||||||
|
void (*endDispatchOverride)(__GLcontext *gc);
|
||||||
|
} __GLexports;
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This must be the first member of a __GLcontext structure. This is the
|
||||||
|
** only part of a context that is exposed to the outside world; everything
|
||||||
|
** else is opaque.
|
||||||
|
*/
|
||||||
|
struct __GLinterfaceRec {
|
||||||
|
__GLimports imports;
|
||||||
|
__GLexports exports;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern __GLcontext *__glCoreCreateContext(__GLimports *, __GLcontextModes *);
|
||||||
|
extern void __glCoreNopDispatch(void);
|
||||||
|
|
||||||
|
#endif /* __gl_core_h_ */
|
123
reactos/lib/mesa32/include/GL/mesa_wgl.h
Normal file
123
reactos/lib/mesa32/include/GL/mesa_wgl.h
Normal file
|
@ -0,0 +1,123 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 3.1
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* prototypes for the Mesa WGL functions */
|
||||||
|
/* relocated here so that I could make GLUT get them properly */
|
||||||
|
|
||||||
|
#define _mesa_wgl_h_
|
||||||
|
|
||||||
|
#ifndef _mesa_wgl_h_
|
||||||
|
#define _mesa_wgl_h_
|
||||||
|
|
||||||
|
|
||||||
|
#include <gl/gl.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__))
|
||||||
|
# if defined(_MSC_VER) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
|
||||||
|
# define GLAPI __declspec(dllexport)
|
||||||
|
# define WGLAPI __declspec(dllexport)
|
||||||
|
# elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
|
||||||
|
# define GLAPI __declspec(dllimport)
|
||||||
|
# define WGLAPI __declspec(dllimport)
|
||||||
|
# else /* for use with static link lib build of Win32 edition only */
|
||||||
|
# define GLAPI extern
|
||||||
|
# define WGLAPI __declspec(dllimport)
|
||||||
|
# endif /* _STATIC_MESA support */
|
||||||
|
# define GLAPIENTRY __stdcall
|
||||||
|
#else
|
||||||
|
/* non-Windows compilation */
|
||||||
|
# define GLAPI extern
|
||||||
|
# define GLAPIENTRY
|
||||||
|
#endif /* WIN32 / CYGWIN32 bracket */
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP)
|
||||||
|
#ifndef _GNU_H_WINDOWS32_FUNCTIONS
|
||||||
|
# ifdef UNICODE
|
||||||
|
# define wglUseFontBitmaps wglUseFontBitmapsW
|
||||||
|
# define wglUseFontOutlines wglUseFontOutlinesW
|
||||||
|
# else
|
||||||
|
# define wglUseFontBitmaps wglUseFontBitmapsA
|
||||||
|
# define wglUseFontOutlines wglUseFontOutlinesA
|
||||||
|
# endif /* !UNICODE */
|
||||||
|
#endif /* _GNU_H_WINDOWS32_FUNCTIONS */
|
||||||
|
typedef struct tagLAYERPLANEDESCRIPTOR LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR;
|
||||||
|
typedef struct _GLYPHMETRICSFLOAT GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT;
|
||||||
|
typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning( disable : 4615 ) /* pragma warning : unknown user warning type*/
|
||||||
|
# pragma warning( push )
|
||||||
|
# pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
|
||||||
|
WGLAPI int GLAPIENTRY wglMakeCurrent(HDC,HGLRC);
|
||||||
|
WGLAPI int GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *);
|
||||||
|
WGLAPI int GLAPIENTRY wglSwapBuffers(HDC hdc);
|
||||||
|
WGLAPI HDC GLAPIENTRY wglGetCurrentDC(void);
|
||||||
|
WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC);
|
||||||
|
WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int);
|
||||||
|
WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void);
|
||||||
|
WGLAPI PROC GLAPIENTRY wglGetProcAddress(const char*);
|
||||||
|
WGLAPI int GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *);
|
||||||
|
WGLAPI int GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int);
|
||||||
|
WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
|
||||||
|
WGLAPI int GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR);
|
||||||
|
WGLAPI int GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR);
|
||||||
|
WGLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *);
|
||||||
|
WGLAPI int GLAPIENTRY wglGetPixelFormat(HDC hdc);
|
||||||
|
WGLAPI int GLAPIENTRY wglMakeCurrent(HDC, HGLRC);
|
||||||
|
WGLAPI int GLAPIENTRY wglRealizeLayerPalette(HDC, int, int);
|
||||||
|
WGLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *);
|
||||||
|
WGLAPI int GLAPIENTRY wglShareLists(HGLRC, HGLRC);
|
||||||
|
WGLAPI int GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int);
|
||||||
|
WGLAPI int GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long);
|
||||||
|
WGLAPI int GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long);
|
||||||
|
WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
|
||||||
|
WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
|
||||||
|
WGLAPI int GLAPIENTRY SwapBuffers(HDC);
|
||||||
|
WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
|
||||||
|
WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
|
||||||
|
WGLAPI int GLAPIENTRY GetPixelFormat(HDC);
|
||||||
|
WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning( pop )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _mesa_wgl_h_ */
|
79
reactos/lib/mesa32/include/GL/mglmesa.h
Normal file
79
reactos/lib/mesa32/include/GL/mglmesa.h
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
/****************************************************************************
|
||||||
|
*
|
||||||
|
* Mesa bindings for SciTech MGL
|
||||||
|
*
|
||||||
|
* Copyright (C) 1996 SciTech Software.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Filename: mglmesa.h
|
||||||
|
* Version: Revision: 1.1.1.1
|
||||||
|
*
|
||||||
|
* Language: ANSI C
|
||||||
|
* Environment: Any
|
||||||
|
*
|
||||||
|
* Description: Header file for the Mesa/OpenGL interface bindings for the
|
||||||
|
* SciTech MGL graphics library. Uses the MGL internal
|
||||||
|
* device context structures to get direct access to the
|
||||||
|
* high performance MGL rasterization functions for maximum
|
||||||
|
* performance. Utilizes the VESA VBE/AF Accelerator Functions
|
||||||
|
* via the MGL's accelerated device driver functions, as well
|
||||||
|
* as basic DirectDraw accelerated functions provided by the
|
||||||
|
* MGL.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef __MGLMESA_H
|
||||||
|
#define __MGLMESA_H
|
||||||
|
|
||||||
|
#include "mgraph.h"
|
||||||
|
|
||||||
|
/*------------------------- Function Prototypes ---------------------------*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" { /* Use "C" linkage when in C++ mode */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __WINDOWS__
|
||||||
|
#define GLAPIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WINDOWS__
|
||||||
|
bool GLAPIENTRY MGLMesaInitDLL(MGLCallbacks *cb,char *version);
|
||||||
|
#endif
|
||||||
|
void GLAPIENTRY MGLMesaChooseVisual(MGLDC *dc,MGLVisual *visual);
|
||||||
|
bool GLAPIENTRY MGLMesaSetVisual(MGLDC *dc,MGLVisual *visual);
|
||||||
|
bool GLAPIENTRY MGLMesaCreateContext(MGLDC *dc,bool forceMemDC);
|
||||||
|
void GLAPIENTRY MGLMesaDestroyContext(MGLDC *dc);
|
||||||
|
void GLAPIENTRY MGLMesaMakeCurrent(MGLDC *dc);
|
||||||
|
void GLAPIENTRY MGLMesaSwapBuffers(MGLDC *dc,bool waitVRT);
|
||||||
|
|
||||||
|
/* Palette manipulation support. The reason we provide palette manipulation
|
||||||
|
* routines is so that when rendering in double buffered modes with a
|
||||||
|
* software backbuffer, the palette for the backbuffer is kept consistent
|
||||||
|
* with the hardware front buffer.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void GLAPIENTRY MGLMesaSetPaletteEntry(MGLDC *dc,int entry,uchar red,uchar green,uchar blue);
|
||||||
|
void GLAPIENTRY MGLMesaSetPalette(MGLDC *dc,palette_t *pal,int numColors,int startIndex);
|
||||||
|
void GLAPIENTRY MGLMesaRealizePalette(MGLDC *dc,int numColors,int startIndex,int waitVRT);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} /* End of "C" linkage for C++ */
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#endif /* __MGLMESA_H */
|
274
reactos/lib/mesa32/include/GL/osmesa.h
Normal file
274
reactos/lib/mesa32/include/GL/osmesa.h
Normal file
|
@ -0,0 +1,274 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.1
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999-2002 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mesa Off-Screen rendering interface.
|
||||||
|
*
|
||||||
|
* This is an operating system and window system independent interface to
|
||||||
|
* Mesa which allows one to render images into a client-supplied buffer in
|
||||||
|
* main memory. Such images may manipulated or saved in whatever way the
|
||||||
|
* client wants.
|
||||||
|
*
|
||||||
|
* These are the API functions:
|
||||||
|
* OSMesaCreateContext - create a new Off-Screen Mesa rendering context
|
||||||
|
* OSMesaMakeCurrent - bind an OSMesaContext to a client's image buffer
|
||||||
|
* and make the specified context the current one.
|
||||||
|
* OSMesaDestroyContext - destroy an OSMesaContext
|
||||||
|
* OSMesaGetCurrentContext - return thread's current context ID
|
||||||
|
* OSMesaPixelStore - controls how pixels are stored in image buffer
|
||||||
|
* OSMesaGetIntegerv - return OSMesa state parameters
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The limits on the width and height of an image buffer are MAX_WIDTH and
|
||||||
|
* MAX_HEIGHT as defined in Mesa/src/config.h. Defaults are 1280 and 1024.
|
||||||
|
* You can increase them as needed but beware that many temporary arrays in
|
||||||
|
* Mesa are dimensioned by MAX_WIDTH or MAX_HEIGHT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef OSMESA_H
|
||||||
|
#define OSMESA_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#include <GL/gl.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define OSMESA_MAJOR_VERSION 4
|
||||||
|
#define OSMESA_MINOR_VERSION 1
|
||||||
|
#define OSMESA_PATCH_VERSION 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Values for the format parameter of OSMesaCreateContext()
|
||||||
|
* New in version 2.0.
|
||||||
|
*/
|
||||||
|
#define OSMESA_COLOR_INDEX GL_COLOR_INDEX
|
||||||
|
#define OSMESA_RGBA GL_RGBA
|
||||||
|
#define OSMESA_BGRA 0x1
|
||||||
|
#define OSMESA_ARGB 0x2
|
||||||
|
#define OSMESA_RGB GL_RGB
|
||||||
|
#define OSMESA_BGR 0x4
|
||||||
|
#define OSMESA_RGB_565 0x5
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* OSMesaPixelStore() parameters:
|
||||||
|
* New in version 2.0.
|
||||||
|
*/
|
||||||
|
#define OSMESA_ROW_LENGTH 0x10
|
||||||
|
#define OSMESA_Y_UP 0x11
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Accepted by OSMesaGetIntegerv:
|
||||||
|
*/
|
||||||
|
#define OSMESA_WIDTH 0x20
|
||||||
|
#define OSMESA_HEIGHT 0x21
|
||||||
|
#define OSMESA_FORMAT 0x22
|
||||||
|
#define OSMESA_TYPE 0x23
|
||||||
|
#define OSMESA_MAX_WIDTH 0x24 /* new in 4.0 */
|
||||||
|
#define OSMESA_MAX_HEIGHT 0x25 /* new in 4.0 */
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct osmesa_context *OSMesaContext;
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__BEOS__) || defined(__QUICKDRAW__)
|
||||||
|
#pragma export on
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create an Off-Screen Mesa rendering context. The only attribute needed is
|
||||||
|
* an RGBA vs Color-Index mode flag.
|
||||||
|
*
|
||||||
|
* Input: format - one of OSMESA_COLOR_INDEX, OSMESA_RGBA, OSMESA_BGRA,
|
||||||
|
* OSMESA_ARGB, OSMESA_RGB, or OSMESA_BGR.
|
||||||
|
* sharelist - specifies another OSMesaContext with which to share
|
||||||
|
* display lists. NULL indicates no sharing.
|
||||||
|
* Return: an OSMesaContext or 0 if error
|
||||||
|
*/
|
||||||
|
GLAPI OSMesaContext GLAPIENTRY
|
||||||
|
OSMesaCreateContext( GLenum format, OSMesaContext sharelist );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create an Off-Screen Mesa rendering context and specify desired
|
||||||
|
* size of depth buffer, stencil buffer and accumulation buffer.
|
||||||
|
* If you specify zero for depthBits, stencilBits, accumBits you
|
||||||
|
* can save some memory.
|
||||||
|
*
|
||||||
|
* New in Mesa 3.5
|
||||||
|
*/
|
||||||
|
GLAPI OSMesaContext GLAPIENTRY
|
||||||
|
OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits,
|
||||||
|
GLint accumBits, OSMesaContext sharelist);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy an Off-Screen Mesa rendering context.
|
||||||
|
*
|
||||||
|
* Input: ctx - the context to destroy
|
||||||
|
*/
|
||||||
|
GLAPI void GLAPIENTRY
|
||||||
|
OSMesaDestroyContext( OSMesaContext ctx );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bind an OSMesaContext to an image buffer. The image buffer is just a
|
||||||
|
* block of memory which the client provides. Its size must be at least
|
||||||
|
* as large as width*height*sizeof(type). Its address should be a multiple
|
||||||
|
* of 4 if using RGBA mode.
|
||||||
|
*
|
||||||
|
* Image data is stored in the order of glDrawPixels: row-major order
|
||||||
|
* with the lower-left image pixel stored in the first array position
|
||||||
|
* (ie. bottom-to-top).
|
||||||
|
*
|
||||||
|
* Since the only type initially supported is GL_UNSIGNED_BYTE, if the
|
||||||
|
* context is in RGBA mode, each pixel will be stored as a 4-byte RGBA
|
||||||
|
* value. If the context is in color indexed mode, each pixel will be
|
||||||
|
* stored as a 1-byte value.
|
||||||
|
*
|
||||||
|
* If the context's viewport hasn't been initialized yet, it will now be
|
||||||
|
* initialized to (0,0,width,height).
|
||||||
|
*
|
||||||
|
* Input: ctx - the rendering context
|
||||||
|
* buffer - the image buffer memory
|
||||||
|
* type - data type for pixel components, only GL_UNSIGNED_BYTE
|
||||||
|
* supported now
|
||||||
|
* width, height - size of image buffer in pixels, at least 1
|
||||||
|
* Return: GL_TRUE if success, GL_FALSE if error because of invalid ctx,
|
||||||
|
* invalid buffer address, type!=GL_UNSIGNED_BYTE, width<1, height<1,
|
||||||
|
* width>internal limit or height>internal limit.
|
||||||
|
*/
|
||||||
|
GLAPI GLboolean GLAPIENTRY
|
||||||
|
OSMesaMakeCurrent( OSMesaContext ctx, void *buffer, GLenum type,
|
||||||
|
GLsizei width, GLsizei height );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the current Off-Screen Mesa rendering context handle.
|
||||||
|
*/
|
||||||
|
GLAPI OSMesaContext GLAPIENTRY
|
||||||
|
OSMesaGetCurrentContext( void );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set pixel store/packing parameters for the current context.
|
||||||
|
* This is similar to glPixelStore.
|
||||||
|
* Input: pname - OSMESA_ROW_LENGTH
|
||||||
|
* specify actual pixels per row in image buffer
|
||||||
|
* 0 = same as image width (default)
|
||||||
|
* OSMESA_Y_UP
|
||||||
|
* zero = Y coordinates increase downward
|
||||||
|
* non-zero = Y coordinates increase upward (default)
|
||||||
|
* value - the value for the parameter pname
|
||||||
|
*
|
||||||
|
* New in version 2.0.
|
||||||
|
*/
|
||||||
|
GLAPI void GLAPIENTRY
|
||||||
|
OSMesaPixelStore( GLint pname, GLint value );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return an integer value like glGetIntegerv.
|
||||||
|
* Input: pname -
|
||||||
|
* OSMESA_WIDTH return current image width
|
||||||
|
* OSMESA_HEIGHT return current image height
|
||||||
|
* OSMESA_FORMAT return image format
|
||||||
|
* OSMESA_TYPE return color component data type
|
||||||
|
* OSMESA_ROW_LENGTH return row length in pixels
|
||||||
|
* OSMESA_Y_UP returns 1 or 0 to indicate Y axis direction
|
||||||
|
* value - pointer to integer in which to return result.
|
||||||
|
*/
|
||||||
|
GLAPI void GLAPIENTRY
|
||||||
|
OSMesaGetIntegerv( GLint pname, GLint *value );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the depth buffer associated with an OSMesa context.
|
||||||
|
* Input: c - the OSMesa context
|
||||||
|
* Output: width, height - size of buffer in pixels
|
||||||
|
* bytesPerValue - bytes per depth value (2 or 4)
|
||||||
|
* buffer - pointer to depth buffer values
|
||||||
|
* Return: GL_TRUE or GL_FALSE to indicate success or failure.
|
||||||
|
*
|
||||||
|
* New in Mesa 2.4.
|
||||||
|
*/
|
||||||
|
GLAPI GLboolean GLAPIENTRY
|
||||||
|
OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint *height,
|
||||||
|
GLint *bytesPerValue, void **buffer );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the color buffer associated with an OSMesa context.
|
||||||
|
* Input: c - the OSMesa context
|
||||||
|
* Output: width, height - size of buffer in pixels
|
||||||
|
* format - buffer format (OSMESA_FORMAT)
|
||||||
|
* buffer - pointer to depth buffer values
|
||||||
|
* Return: GL_TRUE or GL_FALSE to indicate success or failure.
|
||||||
|
*
|
||||||
|
* New in Mesa 3.3.
|
||||||
|
*/
|
||||||
|
GLAPI GLboolean GLAPIENTRY
|
||||||
|
OSMesaGetColorBuffer( OSMesaContext c, GLint *width, GLint *height,
|
||||||
|
GLint *format, void **buffer );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return pointer to the named function.
|
||||||
|
*
|
||||||
|
* New in Mesa 4.1
|
||||||
|
*/
|
||||||
|
GLAPI void * GLAPIENTRY
|
||||||
|
OSMesaGetProcAddress( const char *funcName );
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__BEOS__) || defined(__QUICKDRAW__)
|
||||||
|
#pragma export off
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
97
reactos/lib/mesa32/include/GL/svgamesa.h
Normal file
97
reactos/lib/mesa32/include/GL/svgamesa.h
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.0
|
||||||
|
* Copyright (C) 1995-2001 Brian Paul
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SVGA/Mesa interface for Linux.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Intro to using the VGA/Mesa interface
|
||||||
|
*
|
||||||
|
* 1. #include the <vga.h> file
|
||||||
|
* 2. Call vga_init() to initialize the SVGA library.
|
||||||
|
* 3. Call vga_setmode() to specify the screen size and color depth.
|
||||||
|
* 4. Call SVGAMesaCreateContext() to setup a Mesa context. If using 8-bit
|
||||||
|
* color Mesa assumes color index mode, if using 16-bit or deeper color
|
||||||
|
* Mesa assumes RGB mode.
|
||||||
|
* 5. Call SVGAMesaMakeCurrent() to activate the Mesa context.
|
||||||
|
* 6. You can now use the Mesa API functions.
|
||||||
|
* 7. Before exiting, call SVGAMesaDestroyContext() then vga_setmode(TEXT)
|
||||||
|
* to restore the original text screen.
|
||||||
|
*
|
||||||
|
* Notes
|
||||||
|
* 1. You must run your executable as root (or use the set UID-bit) because
|
||||||
|
* the SVGA library requires it.
|
||||||
|
* 2. The SVGA driver is not fully implemented yet. See svgamesa.c for what
|
||||||
|
* has to be done yet.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SVGAMESA_H
|
||||||
|
#define SVGAMESA_H
|
||||||
|
|
||||||
|
|
||||||
|
#define SVGAMESA_MAJOR_VERSION 4
|
||||||
|
#define SVGAMESA_MINOR_VERSION 0
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#include "GL/gl.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the SVGAMesa context 'handle':
|
||||||
|
*/
|
||||||
|
typedef struct svgamesa_context *SVGAMesaContext;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* doubleBuffer flag new in version 2.4
|
||||||
|
*/
|
||||||
|
extern int SVGAMesaInit( int GraphMode );
|
||||||
|
|
||||||
|
extern int SVGAMesaClose( void );
|
||||||
|
|
||||||
|
extern SVGAMesaContext SVGAMesaCreateContext( GLboolean doubleBuffer );
|
||||||
|
|
||||||
|
extern void SVGAMesaDestroyContext( SVGAMesaContext ctx );
|
||||||
|
|
||||||
|
extern void SVGAMesaMakeCurrent( SVGAMesaContext ctx );
|
||||||
|
|
||||||
|
extern void SVGAMesaSwapBuffers( void );
|
||||||
|
|
||||||
|
extern void SVGAMesaSetCI(int ndx, GLubyte red, GLubyte green, GLubyte blue);
|
||||||
|
|
||||||
|
extern SVGAMesaContext SVGAMesaGetCurrentContext( void );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
45
reactos/lib/mesa32/include/GL/uglglutshapes.h
Normal file
45
reactos/lib/mesa32/include/GL/uglglutshapes.h
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
/* uglglutshapes.h - Public header GLUT Shapes */
|
||||||
|
|
||||||
|
/* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1998. */
|
||||||
|
|
||||||
|
/* This program is freely distributable without licensing fees and is
|
||||||
|
provided without guarantee or warrantee expressed or implied. This
|
||||||
|
program is -not- in the public domain. */
|
||||||
|
|
||||||
|
#ifndef GLUTSHAPES_H
|
||||||
|
#define GLUTSHAPES_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <GL/gl.h>
|
||||||
|
|
||||||
|
void glutWireSphere (GLdouble radius, GLint slices, GLint stacks);
|
||||||
|
void glutSolidSphere (GLdouble radius, GLint slices, GLint stacks);
|
||||||
|
void glutWireCone (GLdouble base, GLdouble height,
|
||||||
|
GLint slices, GLint stacks);
|
||||||
|
void glutSolidCone (GLdouble base, GLdouble height,
|
||||||
|
GLint slices, GLint stacks);
|
||||||
|
void glutWireCube (GLdouble size);
|
||||||
|
void glutSolidCube (GLdouble size);
|
||||||
|
void glutWireTorus (GLdouble innerRadius, GLdouble outerRadius,
|
||||||
|
GLint sides, GLint rings);
|
||||||
|
void glutSolidTorus (GLdouble innerRadius, GLdouble outerRadius,
|
||||||
|
GLint sides, GLint rings);
|
||||||
|
void glutWireDodecahedron (void);
|
||||||
|
void glutSolidDodecahedron (void);
|
||||||
|
void glutWireOctahedron (void);
|
||||||
|
void glutSolidOctahedron (void);
|
||||||
|
void glutWireTetrahedron (void);
|
||||||
|
void glutSolidTetrahedron (void);
|
||||||
|
void glutWireIcosahedron (void);
|
||||||
|
void glutSolidIcosahedron (void);
|
||||||
|
void glutWireTeapot (GLdouble size);
|
||||||
|
void glutSolidTeapot (GLdouble size);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
155
reactos/lib/mesa32/include/GL/uglmesa.h
Normal file
155
reactos/lib/mesa32/include/GL/uglmesa.h
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
/* uglmesa.h - Public header UGL/Mesa */
|
||||||
|
|
||||||
|
/* Copyright (C) 2001 by Wind River Systems, Inc */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.0
|
||||||
|
*
|
||||||
|
* The MIT License
|
||||||
|
* 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 and this permission notice 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
|
||||||
|
* THE AUTHORS OR COPYRIGHT 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Author:
|
||||||
|
* Stephane Raimbault <stephane.raimbault@windriver.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef UGLMESA_H
|
||||||
|
#define UGLMESA_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define UGL_MESA_MAJOR_VERSION 4
|
||||||
|
#define UGL_MESA_MINOR_VERSION 0
|
||||||
|
|
||||||
|
#include <GL/gl.h>
|
||||||
|
#include <ugl/ugl.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Values for display mode of uglMesaCreateContext ()
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* With these mask values, it's possible to test double buffer mode
|
||||||
|
* with UGL_MESA_DOUBLE mask
|
||||||
|
*
|
||||||
|
* SINGLE 0000 0001
|
||||||
|
* DOUBLE 0000 0110
|
||||||
|
* - SOFT 0000 0010
|
||||||
|
* - HARD 0000 0100
|
||||||
|
* WINDML 0001 0000
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define UGL_MESA_SINGLE 0x01
|
||||||
|
#define UGL_MESA_DOUBLE 0x06
|
||||||
|
#define UGL_MESA_DOUBLE_SOFTWARE 0x02
|
||||||
|
#define UGL_MESA_DOUBLE_HARDWARE 0x04
|
||||||
|
|
||||||
|
#define UGL_MESA_WINDML_EXCLUSIVE 0x10
|
||||||
|
|
||||||
|
#define UGL_MESA_FULLSCREEN_WIDTH 0x0
|
||||||
|
#define UGL_MESA_FULLSCREEN_HEIGHT 0x0
|
||||||
|
|
||||||
|
/*
|
||||||
|
* uglMesaPixelStore() parameters:
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define UGL_MESA_ROW_LENGTH 0x20
|
||||||
|
#define UGL_MESA_Y_UP 0x21
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Accepted by uglMesaGetIntegerv:
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define UGL_MESA_LEFT_X 0x01
|
||||||
|
#define UGL_MESA_TOP_Y 0x02
|
||||||
|
#define UGL_MESA_WIDTH 0x03
|
||||||
|
#define UGL_MESA_HEIGHT 0x04
|
||||||
|
#define UGL_MESA_DISPLAY_WIDTH 0x05
|
||||||
|
#define UGL_MESA_DISPLAY_HEIGHT 0x06
|
||||||
|
#define UGL_MESA_COLOR_FORMAT 0x07
|
||||||
|
#define UGL_MESA_COLOR_MODEL 0x08
|
||||||
|
#define UGL_MESA_PIXEL_FORMAT 0x09
|
||||||
|
#define UGL_MESA_TYPE 0x0A
|
||||||
|
#define UGL_MESA_RGB 0x0B
|
||||||
|
#define UGL_MESA_COLOR_INDEXED 0x0C
|
||||||
|
#define UGL_MESA_SINGLE_BUFFER 0x0D
|
||||||
|
#define UGL_MESA_DOUBLE_BUFFER 0x0E
|
||||||
|
#define UGL_MESA_DOUBLE_BUFFER_SOFTWARE 0x0F
|
||||||
|
#define UGL_MESA_DOUBLE_BUFFER_HARDWARE 0x10
|
||||||
|
|
||||||
|
/*
|
||||||
|
* typedefs
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef struct uglMesaContext * UGL_MESA_CONTEXT;
|
||||||
|
|
||||||
|
UGL_MESA_CONTEXT uglMesaCreateNewContext (GLenum mode,
|
||||||
|
UGL_MESA_CONTEXT share_list);
|
||||||
|
|
||||||
|
UGL_MESA_CONTEXT uglMesaCreateNewContextExt (GLenum mode,
|
||||||
|
GLint depth_bits,
|
||||||
|
GLint stencil_bits,
|
||||||
|
GLint accum_red_bits,
|
||||||
|
GLint accum_green_bits,
|
||||||
|
GLint accum_blue_bits,
|
||||||
|
GLint accum_alpha_bits,
|
||||||
|
UGL_MESA_CONTEXT share_list);
|
||||||
|
|
||||||
|
GLboolean uglMesaMakeCurrentContext (UGL_MESA_CONTEXT umc,
|
||||||
|
GLsizei left, GLsizei top,
|
||||||
|
GLsizei width, GLsizei height);
|
||||||
|
|
||||||
|
GLboolean uglMesaMoveWindow (GLsizei dx, GLsizei dy);
|
||||||
|
|
||||||
|
GLboolean uglMesaMoveToWindow (GLsizei left, GLsizei top);
|
||||||
|
|
||||||
|
GLboolean uglMesaResizeWindow (GLsizei dw, GLsizei dh);
|
||||||
|
|
||||||
|
GLboolean uglMesaResizeToWindow (GLsizei width, GLsizei height);
|
||||||
|
|
||||||
|
void uglMesaDestroyContext (void);
|
||||||
|
|
||||||
|
UGL_MESA_CONTEXT uglMesaGetCurrentContext (void);
|
||||||
|
|
||||||
|
void uglMesaSwapBuffers (void);
|
||||||
|
|
||||||
|
void uglMesaPixelStore (GLint pname, GLint value);
|
||||||
|
|
||||||
|
void uglMesaGetIntegerv (GLint pname, GLint *value);
|
||||||
|
|
||||||
|
GLboolean uglMesaGetDepthBuffer (GLint *width, GLint *height,
|
||||||
|
GLint *bytesPerValue, void **buffer);
|
||||||
|
|
||||||
|
GLboolean uglMesaGetColorBuffer (GLint *width, GLint *height,
|
||||||
|
GLint *format, void **buffer);
|
||||||
|
|
||||||
|
GLboolean uglMesaSetColor (GLubyte index, GLfloat red,
|
||||||
|
GLfloat green, GLfloat blue);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
880
reactos/lib/mesa32/include/GL/vms_x_fix.h
Normal file
880
reactos/lib/mesa32/include/GL/vms_x_fix.h
Normal file
|
@ -0,0 +1,880 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* Repair definitions of Xlib when compileing with /name=(as_is) on VMS *
|
||||||
|
* *
|
||||||
|
* Author : Jouk Jansen (joukj@hrem.stm.tudelft.nl) *
|
||||||
|
* *
|
||||||
|
* Last revision : 22 August 2000 *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef VMS_X_FIX
|
||||||
|
#define VMS_X_FIX
|
||||||
|
|
||||||
|
#define _XRegisterFilterByType _XREGISTERFILTERBYTYPE
|
||||||
|
#define XAllocClassHint XALLOCCLASSHINT
|
||||||
|
#define XAllocColor XALLOCCOLOR
|
||||||
|
#define XAllocColorCells XALLOCCOLORCELLS
|
||||||
|
#define XAllocSizeHints XALLOCSIZEHINTS
|
||||||
|
#define XAllocWMHints XALLOCWMHINTS
|
||||||
|
#define XAutoRepeatOff XAUTOREPEATOFF
|
||||||
|
#define XAutoRepeatOn XAUTOREPEATON
|
||||||
|
#define XBaseFontNameListOfFontSet XBASEFONTNAMELISTOFFONTSET
|
||||||
|
#define XBell XBELL
|
||||||
|
#define XBitmapPad XBITMAPPAD
|
||||||
|
#define XChangeActivePointerGrab XCHANGEACTIVEPOINTERGRAB
|
||||||
|
#define XChangeGC XCHANGEGC
|
||||||
|
#define XChangeProperty XCHANGEPROPERTY
|
||||||
|
#define XChangeWindowAttributes XCHANGEWINDOWATTRIBUTES
|
||||||
|
#define XCheckIfEvent XCHECKIFEVENT
|
||||||
|
#define XCheckMaskEvent XCHECKMASKEVENT
|
||||||
|
#define XCheckTypedWindowEvent XCHECKTYPEDWINDOWEVENT
|
||||||
|
#define XCheckWindowEvent XCHECKWINDOWEVENT
|
||||||
|
#define XClearArea XCLEARAREA
|
||||||
|
#define XClearWindow XCLEARWINDOW
|
||||||
|
#define XClipBox XCLIPBOX
|
||||||
|
#define XCloseDisplay XCLOSEDISPLAY
|
||||||
|
#define XCloseIM XCLOSEIM
|
||||||
|
#define XConfigureWindow XCONFIGUREWINDOW
|
||||||
|
#define XConvertSelection XCONVERTSELECTION
|
||||||
|
#define XCopyArea XCOPYAREA
|
||||||
|
#define XCopyGC XCOPYGC
|
||||||
|
#define XCopyPlane XCOPYPLANE
|
||||||
|
#define XCreateBitmapFromData XCREATEBITMAPFROMDATA
|
||||||
|
#define XCreateColormap XCREATECOLORMAP
|
||||||
|
#define XCreateFontCursor XCREATEFONTCURSOR
|
||||||
|
#define XCreateFontSet XCREATEFONTSET
|
||||||
|
#define XCreateGC XCREATEGC
|
||||||
|
#define XCreateIC XCREATEIC
|
||||||
|
#define XCreateImage XCREATEIMAGE
|
||||||
|
#define XCreatePixmap XCREATEPIXMAP
|
||||||
|
#define XCreatePixmapCursor XCREATEPIXMAPCURSOR
|
||||||
|
#define XCreatePixmapFromBitmapData XCREATEPIXMAPFROMBITMAPDATA
|
||||||
|
#define XCreateRegion XCREATEREGION
|
||||||
|
#define XCreateSimpleWindow XCREATESIMPLEWINDOW
|
||||||
|
#define XCreateWindow XCREATEWINDOW
|
||||||
|
#define XDefaultScreenOfDisplay XDEFAULTSCREENOFDISPLAY
|
||||||
|
#define XDefineCursor XDEFINECURSOR
|
||||||
|
#define XDeleteProperty XDELETEPROPERTY
|
||||||
|
#define XDestroyIC XDESTROYIC
|
||||||
|
#define XDestroyRegion XDESTROYREGION
|
||||||
|
#define XDestroyWindow XDESTROYWINDOW
|
||||||
|
#define XDisplayName XDISPLAYNAME
|
||||||
|
#define XDisplayOfScreen XDISPLAYOFSCREEN
|
||||||
|
#define XDrawArc XDRAWARC
|
||||||
|
#define XDrawImageString XDRAWIMAGESTRING
|
||||||
|
#define XDrawImageString16 XDRAWIMAGESTRING16
|
||||||
|
#define XDrawLine XDRAWLINE
|
||||||
|
#define XDrawLines XDRAWLINES
|
||||||
|
#define XDrawPoint XDRAWPOINT
|
||||||
|
#define XDrawPoints XDRAWPOINTS
|
||||||
|
#define XDrawRectangle XDRAWRECTANGLE
|
||||||
|
#define XDrawSegments XDRAWSEGMENTS
|
||||||
|
#define XDrawString XDRAWSTRING
|
||||||
|
#define XDrawString16 XDRAWSTRING16
|
||||||
|
#define XEmptyRegion XEMPTYREGION
|
||||||
|
#define XEqualRegion XEQUALREGION
|
||||||
|
#define XEventsQueued XEVENTSQUEUED
|
||||||
|
#define XExtentsOfFontSet XEXTENTSOFFONTSET
|
||||||
|
#define XFillArc XFILLARC
|
||||||
|
#define XFillPolygon XFILLPOLYGON
|
||||||
|
#define XFillRectangle XFILLRECTANGLE
|
||||||
|
#define XFillRectangles XFILLRECTANGLES
|
||||||
|
#define XFilterEvent XFILTEREVENT
|
||||||
|
#define XFlush XFLUSH
|
||||||
|
#define XFontsOfFontSet XFONTSOFFONTSET
|
||||||
|
#define XFree XFREE
|
||||||
|
#define XFreeColormap XFREECOLORMAP
|
||||||
|
#define XFreeColors XFREECOLORS
|
||||||
|
#define XFreeCursor XFREECURSOR
|
||||||
|
#define XFreeFont XFREEFONT
|
||||||
|
#define XFreeFontInfo XFREEFONTINFO
|
||||||
|
#define XFreeFontNames XFREEFONTNAMES
|
||||||
|
#define XFreeFontSet XFREEFONTSET
|
||||||
|
#define XFreeGC XFREEGC
|
||||||
|
#define XFreeModifiermap XFREEMODIFIERMAP
|
||||||
|
#define XFreePixmap XFREEPIXMAP
|
||||||
|
#define XFreeStringList XFREESTRINGLIST
|
||||||
|
#define XGetAtomName XGETATOMNAME
|
||||||
|
#define XGetDefault XGETDEFAULT
|
||||||
|
#define XGetErrorDatabaseText XGETERRORDATABASETEXT
|
||||||
|
#define XGetErrorText XGETERRORTEXT
|
||||||
|
#define XGetFontProperty XGETFONTPROPERTY
|
||||||
|
#define XGetGCValues XGETGCVALUES
|
||||||
|
#define XGetGeometry XGETGEOMETRY
|
||||||
|
#define XGetICValues XGETICVALUES
|
||||||
|
#define XGetIMValues XGETIMVALUES
|
||||||
|
#define XGetImage XGETIMAGE
|
||||||
|
#define XGetKeyboardControl XGETKEYBOARDCONTROL
|
||||||
|
#define XGetModifierMapping XGETMODIFIERMAPPING
|
||||||
|
#define XGetMotionEvents XGETMOTIONEVENTS
|
||||||
|
#define XGetNormalHints XGETNORMALHINTS
|
||||||
|
#define XGetSelectionOwner XGETSELECTIONOWNER
|
||||||
|
#define XGetSubImage XGETSUBIMAGE
|
||||||
|
#define XGetVisualInfo XGETVISUALINFO
|
||||||
|
#define XGetWMColormapWindows XGETWMCOLORMAPWINDOWS
|
||||||
|
#define XGetWMHints XGETWMHINTS
|
||||||
|
#define XGetWMName XGETWMNAME
|
||||||
|
#define XGetWMNormalHints XGETWMNORMALHINTS
|
||||||
|
#define XGetWindowAttributes XGETWINDOWATTRIBUTES
|
||||||
|
#define XGetWindowProperty XGETWINDOWPROPERTY
|
||||||
|
#define XGrabKeyboard XGRABKEYBOARD
|
||||||
|
#define XGrabPointer XGRABPOINTER
|
||||||
|
#define XGrabServer XGRABSERVER
|
||||||
|
#define XHeightOfScreen XHEIGHTOFSCREEN
|
||||||
|
#define XIfEvent XIFEVENT
|
||||||
|
#define XInternAtom XINTERNATOM
|
||||||
|
#define XIntersectRegion XINTERSECTREGION
|
||||||
|
#define XKeycodeToKeysym XKEYCODETOKEYSYM
|
||||||
|
#define XKeysymToKeycode XKEYSYMTOKEYCODE
|
||||||
|
#define XKeysymToString XKEYSYMTOSTRING
|
||||||
|
#define XListFonts XLISTFONTS
|
||||||
|
#define XListFontsWithInfo XLISTFONTSWITHINFO
|
||||||
|
#define XListPixmapFormats XLISTPIXMAPFORMATS
|
||||||
|
#define XListProperties XLISTPROPERTIES
|
||||||
|
#define XLoadQueryFont XLOADQUERYFONT
|
||||||
|
#define XLookupString XLOOKUPSTRING
|
||||||
|
#define XLowerWindow XLOWERWINDOW
|
||||||
|
#define XMapRaised XMAPRAISED
|
||||||
|
#define XMapWindow XMAPWINDOW
|
||||||
|
#define XMatchVisualInfo XMATCHVISUALINFO
|
||||||
|
#define XMoveResizeWindow XMOVERESIZEWINDOW
|
||||||
|
#define XMoveWindow XMOVEWINDOW
|
||||||
|
#define XNextEvent XNEXTEVENT
|
||||||
|
#define XOffsetRegion XOFFSETREGION
|
||||||
|
#define XOpenDisplay XOPENDISPLAY
|
||||||
|
#define XOpenIM XOPENIM
|
||||||
|
#define XParseColor XPARSECOLOR
|
||||||
|
#define XParseGeometry XPARSEGEOMETRY
|
||||||
|
#define XPeekEvent XPEEKEVENT
|
||||||
|
#define XPending XPENDING
|
||||||
|
#define XPointInRegion XPOINTINREGION
|
||||||
|
#define XPolygonRegion XPOLYGONREGION
|
||||||
|
#define XPutBackEvent XPUTBACKEVENT
|
||||||
|
#define XPutImage XPUTIMAGE
|
||||||
|
#define XQueryColor XQUERYCOLOR
|
||||||
|
#define XQueryColors XQUERYCOLORS
|
||||||
|
#define XQueryExtension XQUERYEXTENSION
|
||||||
|
#define XQueryPointer XQUERYPOINTER
|
||||||
|
#define XQueryTree XQUERYTREE
|
||||||
|
#define XRaiseWindow XRAISEWINDOW
|
||||||
|
#define XReconfigureWMWindow XRECONFIGUREWMWINDOW
|
||||||
|
#define XRectInRegion XRECTINREGION
|
||||||
|
#define XRefreshKeyboardMapping XREFRESHKEYBOARDMAPPING
|
||||||
|
#define XReparentWindow XREPARENTWINDOW
|
||||||
|
#define XResizeWindow XRESIZEWINDOW
|
||||||
|
#define XRestackWindows XRESTACKWINDOWS
|
||||||
|
#define XRootWindowOfScreen XROOTWINDOWOFSCREEN
|
||||||
|
#define XScreenNumberOfScreen XSCREENNUMBEROFSCREEN
|
||||||
|
#define XSelectAsyncEvent XSELECTASYNCEVENT
|
||||||
|
#define XSelectAsyncInput XSELECTASYNCINPUT
|
||||||
|
#define XSelectInput XSELECTINPUT
|
||||||
|
#define XSendEvent XSENDEVENT
|
||||||
|
#define XServerVendor XSERVERVENDOR
|
||||||
|
#define XSetBackground XSETBACKGROUND
|
||||||
|
#define XSetClassHint XSETCLASSHINT
|
||||||
|
#define XSetClipMask XSETCLIPMASK
|
||||||
|
#define XSetClipOrigin XSETCLIPORIGIN
|
||||||
|
#define XSetClipRectangles XSETCLIPRECTANGLES
|
||||||
|
#define XSetCloseDownMode XSETCLOSEDOWNMODE
|
||||||
|
#define XSetCommand XSETCOMMAND
|
||||||
|
#define XSetDashes XSETDASHES
|
||||||
|
#define XSetErrorHandler XSETERRORHANDLER
|
||||||
|
#define XSetFillStyle XSETFILLSTYLE
|
||||||
|
#define XSetFont XSETFONT
|
||||||
|
#define XSetForeground XSETFOREGROUND
|
||||||
|
#define XSetFunction XSETFUNCTION
|
||||||
|
#define XSetGraphicsExposures XSETGRAPHICSEXPOSURES
|
||||||
|
#define XSetICFocus XSETICFOCUS
|
||||||
|
#define XSetICValues XSETICVALUES
|
||||||
|
#define XSetIOErrorHandler XSETIOERRORHANDLER
|
||||||
|
#define XSetInputFocus XSETINPUTFOCUS
|
||||||
|
#define XSetLineAttributes XSETLINEATTRIBUTES
|
||||||
|
#define XSetLocaleModifiers XSETLOCALEMODIFIERS
|
||||||
|
#define XSetNormalHints XSETNORMALHINTS
|
||||||
|
#define XSetRegion XSETREGION
|
||||||
|
#define XSetSelectionOwner XSETSELECTIONOWNER
|
||||||
|
#define XSetStipple XSETSTIPPLE
|
||||||
|
#define XSetSubwindowMode XSETSUBWINDOWMODE
|
||||||
|
#define XSetTSOrigin XSETTSORIGIN
|
||||||
|
#define XSetTile XSETTILE
|
||||||
|
#define XSetTransientForHint XSETTRANSIENTFORHINT
|
||||||
|
#define XSetWMColormapWindows XSETWMCOLORMAPWINDOWS
|
||||||
|
#define XSetWMHints XSETWMHINTS
|
||||||
|
#define XSetWMIconName XSETWMICONNAME
|
||||||
|
#define XSetWMName XSETWMNAME
|
||||||
|
#define XSetWMNormalHints XSETWMNORMALHINTS
|
||||||
|
#define XSetWMProperties XSETWMPROPERTIES
|
||||||
|
#define XSetWMProtocols XSETWMPROTOCOLS
|
||||||
|
#define XSetWindowBackground XSETWINDOWBACKGROUND
|
||||||
|
#define XSetWindowBackgroundPixmap XSETWINDOWBACKGROUNDPIXMAP
|
||||||
|
#define XSetWindowColormap XSETWINDOWCOLORMAP
|
||||||
|
#define XShapeCombineMask XSHAPECOMBINEMASK
|
||||||
|
#define XShapeCombineRectangles XSHAPECOMBINERECTANGLES
|
||||||
|
#define XShapeGetRectangles XSHAPEGETRECTANGLES
|
||||||
|
#define XShrinkRegion XSHRINKREGION
|
||||||
|
#define XStoreColor XSTORECOLOR
|
||||||
|
#define XStoreColors XSTORECOLORS
|
||||||
|
#define XStoreName XSTORENAME
|
||||||
|
#define XStringToKeysym XSTRINGTOKEYSYM
|
||||||
|
#define XSubtractRegion XSUBTRACTREGION
|
||||||
|
#define XSupportsLocale XSUPPORTSLOCALE
|
||||||
|
#define XSync XSYNC
|
||||||
|
#define XSynchronize XSYNCHRONIZE
|
||||||
|
#define XTextExtents XTEXTEXTENTS
|
||||||
|
#define XTextExtents16 XTEXTEXTENTS16
|
||||||
|
#define XTextWidth XTEXTWIDTH
|
||||||
|
#define XTextWidth16 XTEXTWIDTH16
|
||||||
|
#define XTranslateCoordinates XTRANSLATECOORDINATES
|
||||||
|
#define XUndefineCursor XUNDEFINECURSOR
|
||||||
|
#define XUngrabKeyboard XUNGRABKEYBOARD
|
||||||
|
#define XUngrabPointer XUNGRABPOINTER
|
||||||
|
#define XUngrabServer XUNGRABSERVER
|
||||||
|
#define XUnionRectWithRegion XUNIONRECTWITHREGION
|
||||||
|
#define XUnionRegion XUNIONREGION
|
||||||
|
#define XUnmapWindow XUNMAPWINDOW
|
||||||
|
#define _XUnregisterFilter _XUNREGISTERFILTER
|
||||||
|
#define XUnsetICFocus XUNSETICFOCUS
|
||||||
|
#define XVaCreateNestedList XVACREATENESTEDLIST
|
||||||
|
#define XVisualIDFromVisual XVISUALIDFROMVISUAL
|
||||||
|
#define XWidthOfScreen XWIDTHOFSCREEN
|
||||||
|
#define XWindowEvent XWINDOWEVENT
|
||||||
|
#define XWithdrawWindow XWITHDRAWWINDOW
|
||||||
|
#define XXorRegion XXORREGION
|
||||||
|
#define XmAddProtocolCallback XMADDPROTOCOLCALLBACK
|
||||||
|
#define XmAddProtocols XMADDPROTOCOLS
|
||||||
|
#define XmChangeColor XMCHANGECOLOR
|
||||||
|
#define XmClipboardCopy XMCLIPBOARDCOPY
|
||||||
|
#define XmClipboardEndCopy XMCLIPBOARDENDCOPY
|
||||||
|
#define XmClipboardInquireLength XMCLIPBOARDINQUIRELENGTH
|
||||||
|
#define XmClipboardLock XMCLIPBOARDLOCK
|
||||||
|
#define XmClipboardRetrieve XMCLIPBOARDRETRIEVE
|
||||||
|
#define XmClipboardStartCopy XMCLIPBOARDSTARTCOPY
|
||||||
|
#define XmClipboardUnlock XMCLIPBOARDUNLOCK
|
||||||
|
#define XmCreateArrowButton XMCREATEARROWBUTTON
|
||||||
|
#define XmCreateArrowButtonGadget XMCREATEARROWBUTTONGADGET
|
||||||
|
#define XmCreateCascadeButton XMCREATECASCADEBUTTON
|
||||||
|
#define XmCreateDialogShell XMCREATEDIALOGSHELL
|
||||||
|
#define XmCreateDragIcon XMCREATEDRAGICON
|
||||||
|
#define XmCreateDrawingArea XMCREATEDRAWINGAREA
|
||||||
|
#define XmCreateDrawnButton XMCREATEDRAWNBUTTON
|
||||||
|
#define XmCreateFileSelectionBox XMCREATEFILESELECTIONBOX
|
||||||
|
#define XmCreateFileSelectionDialog XMCREATEFILESELECTIONDIALOG
|
||||||
|
#define XmCreateForm XMCREATEFORM
|
||||||
|
#define XmCreateFormDialog XMCREATEFORMDIALOG
|
||||||
|
#define XmCreateFrame XMCREATEFRAME
|
||||||
|
#define XmCreateInformationDialog XMCREATEINFORMATIONDIALOG
|
||||||
|
#define XmCreateLabelGadget XMCREATELABELGADGET
|
||||||
|
#define XmCreateMainWindow XMCREATEMAINWINDOW
|
||||||
|
#define XmCreateMenuBar XMCREATEMENUBAR
|
||||||
|
#define XmCreateMessageBox XMCREATEMESSAGEBOX
|
||||||
|
#define XmCreateMessageDialog XMCREATEMESSAGEDIALOG
|
||||||
|
#define XmCreateOptionMenu XMCREATEOPTIONMENU
|
||||||
|
#define XmCreatePanedWindow XMCREATEPANEDWINDOW
|
||||||
|
#define XmCreatePopupMenu XMCREATEPOPUPMENU
|
||||||
|
#define XmCreatePromptDialog XMCREATEPROMPTDIALOG
|
||||||
|
#define XmCreatePulldownMenu XMCREATEPULLDOWNMENU
|
||||||
|
#define XmCreatePushButton XMCREATEPUSHBUTTON
|
||||||
|
#define XmCreatePushButtonGadget XMCREATEPUSHBUTTONGADGET
|
||||||
|
#define XmCreateQuestionDialog XMCREATEQUESTIONDIALOG
|
||||||
|
#define XmCreateRadioBox XMCREATERADIOBOX
|
||||||
|
#define XmCreateRowColumn XMCREATEROWCOLUMN
|
||||||
|
#define XmCreateScale XMCREATESCALE
|
||||||
|
#define XmCreateScrollBar XMCREATESCROLLBAR
|
||||||
|
#define XmCreateScrolledList XMCREATESCROLLEDLIST
|
||||||
|
#define XmCreateScrolledText XMCREATESCROLLEDTEXT
|
||||||
|
#define XmCreateScrolledWindow XMCREATESCROLLEDWINDOW
|
||||||
|
#define XmCreateSelectionDialog XMCREATESELECTIONDIALOG
|
||||||
|
#define XmCreateSeparator XMCREATESEPARATOR
|
||||||
|
#define XmCreateSeparatorGadget XMCREATESEPARATORGADGET
|
||||||
|
#define XmCreateTemplateDialog XMCREATETEMPLATEDIALOG
|
||||||
|
#define XmCreateText XMCREATETEXT
|
||||||
|
#define XmCreateTextField XMCREATETEXTFIELD
|
||||||
|
#define XmCreateToggleButton XMCREATETOGGLEBUTTON
|
||||||
|
#define XmCreateToggleButtonGadget XMCREATETOGGLEBUTTONGADGET
|
||||||
|
#define XmDragStart XMDRAGSTART
|
||||||
|
#define XmDropSiteRegister XMDROPSITEREGISTER
|
||||||
|
#define XmDropSiteUnregister XMDROPSITEUNREGISTER
|
||||||
|
#define XmDropSiteUpdate XMDROPSITEUPDATE
|
||||||
|
#define XmDropTransferStart XMDROPTRANSFERSTART
|
||||||
|
#define XmFileSelectionBoxGetChild XMFILESELECTIONBOXGETCHILD
|
||||||
|
#define XmFileSelectionDoSearch XMFILESELECTIONDOSEARCH
|
||||||
|
#define XmFontListAppendEntry XMFONTLISTAPPENDENTRY
|
||||||
|
#define XmFontListCopy XMFONTLISTCOPY
|
||||||
|
#define XmFontListCreate XMFONTLISTCREATE
|
||||||
|
#define XmFontListEntryCreate XMFONTLISTENTRYCREATE
|
||||||
|
#define XmFontListEntryFree XMFONTLISTENTRYFREE
|
||||||
|
#define XmFontListEntryGetFont XMFONTLISTENTRYGETFONT
|
||||||
|
#define XmFontListEntryGetTag XMFONTLISTENTRYGETTAG
|
||||||
|
#define XmFontListEntryLoad XMFONTLISTENTRYLOAD
|
||||||
|
#define XmFontListFree XMFONTLISTFREE
|
||||||
|
#define XmFontListFreeFontContext XMFONTLISTFREEFONTCONTEXT
|
||||||
|
#define XmFontListGetNextFont XMFONTLISTGETNEXTFONT
|
||||||
|
#define XmFontListInitFontContext XMFONTLISTINITFONTCONTEXT
|
||||||
|
#define XmFontListNextEntry XMFONTLISTNEXTENTRY
|
||||||
|
#define XmGetColors XMGETCOLORS
|
||||||
|
#define XmGetFocusWidget XMGETFOCUSWIDGET
|
||||||
|
#define XmGetMenuCursor XMGETMENUCURSOR
|
||||||
|
#define XmGetPixmapByDepth XMGETPIXMAPBYDEPTH
|
||||||
|
#define XmGetTearOffControl XMGETTEAROFFCONTROL
|
||||||
|
#define XmGetXmDisplay XMGETXMDISPLAY
|
||||||
|
#define XmImMbLookupString XMIMMBLOOKUPSTRING
|
||||||
|
#define XmImRegister XMIMREGISTER
|
||||||
|
#define XmImSetFocusValues XMIMSETFOCUSVALUES
|
||||||
|
#define XmImSetValues XMIMSETVALUES
|
||||||
|
#define XmImUnregister XMIMUNREGISTER
|
||||||
|
#define XmImUnsetFocus XMIMUNSETFOCUS
|
||||||
|
#define XmInternAtom XMINTERNATOM
|
||||||
|
#define XmIsMotifWMRunning XMISMOTIFWMRUNNING
|
||||||
|
#define XmListAddItem XMLISTADDITEM
|
||||||
|
#define XmListAddItemUnselected XMLISTADDITEMUNSELECTED
|
||||||
|
#define XmListAddItemsUnselected XMLISTADDITEMSUNSELECTED
|
||||||
|
#define XmListDeleteAllItems XMLISTDELETEALLITEMS
|
||||||
|
#define XmListDeleteItemsPos XMLISTDELETEITEMSPOS
|
||||||
|
#define XmListDeletePos XMLISTDELETEPOS
|
||||||
|
#define XmListDeselectAllItems XMLISTDESELECTALLITEMS
|
||||||
|
#define XmListDeselectPos XMLISTDESELECTPOS
|
||||||
|
#define XmListGetKbdItemPos XMLISTGETKBDITEMPOS
|
||||||
|
#define XmListGetMatchPos XMLISTGETMATCHPOS
|
||||||
|
#define XmListGetSelectedPos XMLISTGETSELECTEDPOS
|
||||||
|
#define XmListPosSelected XMLISTPOSSELECTED
|
||||||
|
#define XmListSelectItem XMLISTSELECTITEM
|
||||||
|
#define XmListSelectPos XMLISTSELECTPOS
|
||||||
|
#define XmListSetBottomPos XMLISTSETBOTTOMPOS
|
||||||
|
#define XmListSetItem XMLISTSETITEM
|
||||||
|
#define XmListSetKbdItemPos XMLISTSETKBDITEMPOS
|
||||||
|
#define XmListSetPos XMLISTSETPOS
|
||||||
|
#define XmMainWindowSetAreas XMMAINWINDOWSETAREAS
|
||||||
|
#define XmMenuPosition XMMENUPOSITION
|
||||||
|
#define XmMessageBoxGetChild XMMESSAGEBOXGETCHILD
|
||||||
|
#define XmOptionButtonGadget XMOPTIONBUTTONGADGET
|
||||||
|
#define XmOptionLabelGadget XMOPTIONLABELGADGET
|
||||||
|
#define XmProcessTraversal XMPROCESSTRAVERSAL
|
||||||
|
#define XmQmotif XMQMOTIF
|
||||||
|
#define XmRemoveProtocolCallback XMREMOVEPROTOCOLCALLBACK
|
||||||
|
#define XmRepTypeGetId XMREPTYPEGETID
|
||||||
|
#define XmRepTypeGetRecord XMREPTYPEGETRECORD
|
||||||
|
#define XmRepTypeRegister XMREPTYPEREGISTER
|
||||||
|
#define XmRepTypeValidValue XMREPTYPEVALIDVALUE
|
||||||
|
#define XmScrollBarSetValues XMSCROLLBARSETVALUES
|
||||||
|
#define XmScrolledWindowSetAreas XMSCROLLEDWINDOWSETAREAS
|
||||||
|
#define XmSelectionBoxGetChild XMSELECTIONBOXGETCHILD
|
||||||
|
#define XmStringByteCompare XMSTRINGBYTECOMPARE
|
||||||
|
#define XmStringCompare XMSTRINGCOMPARE
|
||||||
|
#define XmStringConcat XMSTRINGCONCAT
|
||||||
|
#define XmStringCopy XMSTRINGCOPY
|
||||||
|
#define XmStringCreate XMSTRINGCREATE
|
||||||
|
#define XmStringCreateLocalized XMSTRINGCREATELOCALIZED
|
||||||
|
#define XmStringCreateLtoR XMSTRINGCREATELTOR
|
||||||
|
#define XmStringCreateSimple XMSTRINGCREATESIMPLE
|
||||||
|
#define XmStringDraw XMSTRINGDRAW
|
||||||
|
#define XmStringDrawUnderline XMSTRINGDRAWUNDERLINE
|
||||||
|
#define XmStringExtent XMSTRINGEXTENT
|
||||||
|
#define XmStringFree XMSTRINGFREE
|
||||||
|
#define XmStringFreeContext XMSTRINGFREECONTEXT
|
||||||
|
#define XmStringGetLtoR XMSTRINGGETLTOR
|
||||||
|
#define XmStringGetNextComponent XMSTRINGGETNEXTCOMPONENT
|
||||||
|
#define XmStringGetNextSegment XMSTRINGGETNEXTSEGMENT
|
||||||
|
#define XmStringInitContext XMSTRINGINITCONTEXT
|
||||||
|
#define XmStringLength XMSTRINGLENGTH
|
||||||
|
#define XmStringLtoRCreate XMSTRINGLTORCREATE
|
||||||
|
#define XmStringNConcat XMSTRINGNCONCAT
|
||||||
|
#define XmStringSegmentCreate XMSTRINGSEGMENTCREATE
|
||||||
|
#define XmStringWidth XMSTRINGWIDTH
|
||||||
|
#define XmTextClearSelection XMTEXTCLEARSELECTION
|
||||||
|
#define XmTextFieldGetEditable XMTEXTFIELDGETEDITABLE
|
||||||
|
#define XmTextFieldGetInsertionPosition XMTEXTFIELDGETINSERTIONPOSITION
|
||||||
|
#define XmTextFieldGetLastPosition XMTEXTFIELDGETLASTPOSITION
|
||||||
|
#define XmTextFieldGetSelection XMTEXTFIELDGETSELECTION
|
||||||
|
#define XmTextFieldGetString XMTEXTFIELDGETSTRING
|
||||||
|
#define XmTextFieldInsert XMTEXTFIELDINSERT
|
||||||
|
#define XmTextFieldRemove XMTEXTFIELDREMOVE
|
||||||
|
#define XmTextFieldSetSelection XMTEXTFIELDSETSELECTION
|
||||||
|
#define XmTextFieldSetString XMTEXTFIELDSETSTRING
|
||||||
|
#define XmTextGetCursorPosition XMTEXTGETCURSORPOSITION
|
||||||
|
#define XmTextGetInsertionPosition XMTEXTGETINSERTIONPOSITION
|
||||||
|
#define XmTextGetLastPosition XMTEXTGETLASTPOSITION
|
||||||
|
#define XmTextGetMaxLength XMTEXTGETMAXLENGTH
|
||||||
|
#define XmTextGetSelection XMTEXTGETSELECTION
|
||||||
|
#define XmTextGetSelectionPosition XMTEXTGETSELECTIONPOSITION
|
||||||
|
#define XmTextGetString XMTEXTGETSTRING
|
||||||
|
#define XmTextInsert XMTEXTINSERT
|
||||||
|
#define XmTextRemove XMTEXTREMOVE
|
||||||
|
#define XmTextReplace XMTEXTREPLACE
|
||||||
|
#define XmTextSetCursorPosition XMTEXTSETCURSORPOSITION
|
||||||
|
#define XmTextSetHighlight XMTEXTSETHIGHLIGHT
|
||||||
|
#define XmTextSetInsertionPosition XMTEXTSETINSERTIONPOSITION
|
||||||
|
#define XmTextSetSelection XMTEXTSETSELECTION
|
||||||
|
#define XmTextSetString XMTEXTSETSTRING
|
||||||
|
#define XmToggleButtonGadgetGetState XMTOGGLEBUTTONGADGETGETSTATE
|
||||||
|
#define XmToggleButtonGadgetSetState XMTOGGLEBUTTONGADGETSETSTATE
|
||||||
|
#define XmToggleButtonGetState XMTOGGLEBUTTONGETSTATE
|
||||||
|
#define XmToggleButtonSetState XMTOGGLEBUTTONSETSTATE
|
||||||
|
#define XmUpdateDisplay XMUPDATEDISPLAY
|
||||||
|
#define XmVaCreateSimpleRadioBox XMVACREATESIMPLERADIOBOX
|
||||||
|
#define XmbDrawString XMBDRAWSTRING
|
||||||
|
#define XmbLookupString XMBLOOKUPSTRING
|
||||||
|
#define XmbResetIC XMBRESETIC
|
||||||
|
#define XmbSetWMProperties XMBSETWMPROPERTIES
|
||||||
|
#define XmbTextEscapement XMBTEXTESCAPEMENT
|
||||||
|
#define XmbTextExtents XMBTEXTEXTENTS
|
||||||
|
#define XmbTextListToTextProperty XMBTEXTLISTTOTEXTPROPERTY
|
||||||
|
#define XmbTextPropertyToTextList XMBTEXTPROPERTYTOTEXTLIST
|
||||||
|
#define XmuClientWindow XMUCLIENTWINDOW
|
||||||
|
#define XmuPrintDefaultErrorMessage XMUPRINTDEFAULTERRORMESSAGE
|
||||||
|
#define XrmGetDatabase XRMGETDATABASE
|
||||||
|
#define XrmGetResource XRMGETRESOURCE
|
||||||
|
#define XrmPutStringResource XRMPUTSTRINGRESOURCE
|
||||||
|
#define XrmQuarkToString XRMQUARKTOSTRING
|
||||||
|
#define XrmStringToQuark XRMSTRINGTOQUARK
|
||||||
|
#define XtAddCallback XTADDCALLBACK
|
||||||
|
#define XtAddCallbacks XTADDCALLBACKS
|
||||||
|
#define XtAddEventHandler XTADDEVENTHANDLER
|
||||||
|
#define XtAddGrab XTADDGRAB
|
||||||
|
#define XtAllocateGC XTALLOCATEGC
|
||||||
|
#define XtAppAddActions XTAPPADDACTIONS
|
||||||
|
#define XtAppAddInput XTAPPADDINPUT
|
||||||
|
#define XtAppAddTimeOut XTAPPADDTIMEOUT
|
||||||
|
#define XtAppCreateShell XTAPPCREATESHELL
|
||||||
|
#define XtAppInitialize XTAPPINITIALIZE
|
||||||
|
#define XtAppNextEvent XTAPPNEXTEVENT
|
||||||
|
#define XtAppPeekEvent XTAPPPEEKEVENT
|
||||||
|
#define XtAppPending XTAPPPENDING
|
||||||
|
#define XtAppProcessEvent XTAPPPROCESSEVENT
|
||||||
|
#define XtAppSetErrorHandler XTAPPSETERRORHANDLER
|
||||||
|
#define XtAppSetFallbackResources XTAPPSETFALLBACKRESOURCES
|
||||||
|
#define XtAppSetWarningHandler XTAPPSETWARNINGHANDLER
|
||||||
|
#define XtAppSetWarningMsgHandler XTAPPSETWARNINGMSGHANDLER
|
||||||
|
#define XtAppWarning XTAPPWARNING
|
||||||
|
#define XtCallActionProc XTCALLACTIONPROC
|
||||||
|
#define XtCallCallbackList XTCALLCALLBACKLIST
|
||||||
|
#define XtCallCallbacks XTCALLCALLBACKS
|
||||||
|
#define XtConfigureWidget XTCONFIGUREWIDGET
|
||||||
|
#define XtConvertAndStore XTCONVERTANDSTORE
|
||||||
|
#define XtCreateApplicationContext XTCREATEAPPLICATIONCONTEXT
|
||||||
|
#define XtCreateManagedWidget XTCREATEMANAGEDWIDGET
|
||||||
|
#define XtCreatePopupShell XTCREATEPOPUPSHELL
|
||||||
|
#define XtCreateWidget XTCREATEWIDGET
|
||||||
|
#define XtDatabase XTDATABASE
|
||||||
|
#define XtDestroyWidget XTDESTROYWIDGET
|
||||||
|
#define XtDisownSelection XTDISOWNSELECTION
|
||||||
|
#define XtDispatchEvent XTDISPATCHEVENT
|
||||||
|
#define XtDisplayOfObject XTDISPLAYOFOBJECT
|
||||||
|
#define XtDisplayStringConvWarning XTDISPLAYSTRINGCONVWARNING
|
||||||
|
#define XtDisplayToApplicationContext XTDISPLAYTOAPPLICATIONCONTEXT
|
||||||
|
#define XtAppAddWorkProc XTAPPADDWORKPROC
|
||||||
|
#define XtRemoveWorkProc XTREMOVEWORKPROC
|
||||||
|
#define XtFree XTFREE
|
||||||
|
#define XtGetActionKeysym XTGETACTIONKEYSYM
|
||||||
|
#define XtGetActionList XTGETACTIONLIST
|
||||||
|
#define XtGetApplicationNameAndClass XTGETAPPLICATIONNAMEANDCLASS
|
||||||
|
#define XtGetApplicationResources XTGETAPPLICATIONRESOURCES
|
||||||
|
#define XtGetGC XTGETGC
|
||||||
|
#define XtGetMultiClickTime XTGETMULTICLICKTIME
|
||||||
|
#define XtGetSelectionValue XTGETSELECTIONVALUE
|
||||||
|
#define XtGetSelectionValues XTGETSELECTIONVALUES
|
||||||
|
#define XtGetSubresources XTGETSUBRESOURCES
|
||||||
|
#define XtGetValues XTGETVALUES
|
||||||
|
#define XtGrabKeyboard XTGRABKEYBOARD
|
||||||
|
#define XtGrabPointer XTGRABPOINTER
|
||||||
|
#define XtHasCallbacks XTHASCALLBACKS
|
||||||
|
#define XtInitializeWidgetClass XTINITIALIZEWIDGETCLASS
|
||||||
|
#define XtInsertEventHandler XTINSERTEVENTHANDLER
|
||||||
|
#define XtIsManaged XTISMANAGED
|
||||||
|
#define XtIsObject XTISOBJECT
|
||||||
|
#define XtIsSensitive XTISSENSITIVE
|
||||||
|
#define XtIsSubclass XTISSUBCLASS
|
||||||
|
#define XtLastTimestampProcessed XTLASTTIMESTAMPPROCESSED
|
||||||
|
#define XtMakeGeometryRequest XTMAKEGEOMETRYREQUEST
|
||||||
|
#define XtMakeResizeRequest XTMAKERESIZEREQUEST
|
||||||
|
#define XtMalloc XTMALLOC
|
||||||
|
#define XtManageChild XTMANAGECHILD
|
||||||
|
#define XtManageChildren XTMANAGECHILDREN
|
||||||
|
#define XtMergeArgLists XTMERGEARGLISTS
|
||||||
|
#define XtMoveWidget XTMOVEWIDGET
|
||||||
|
#define XtName XTNAME
|
||||||
|
#define XtNameToWidget XTNAMETOWIDGET
|
||||||
|
#define XtOpenDisplay XTOPENDISPLAY
|
||||||
|
#define XtOverrideTranslations XTOVERRIDETRANSLATIONS
|
||||||
|
#define XtOwnSelection XTOWNSELECTION
|
||||||
|
#define XtParseTranslationTable XTPARSETRANSLATIONTABLE
|
||||||
|
#define XtPopdown XTPOPDOWN
|
||||||
|
#define XtPopup XTPOPUP
|
||||||
|
#define XtQueryGeometry XTQUERYGEOMETRY
|
||||||
|
#define XtRealizeWidget XTREALIZEWIDGET
|
||||||
|
#define XtRealloc XTREALLOC
|
||||||
|
#define XtReleaseGC XTRELEASEGC
|
||||||
|
#define XtRemoveAllCallbacks XTREMOVEALLCALLBACKS
|
||||||
|
#define XtRemoveCallback XTREMOVECALLBACK
|
||||||
|
#define XtRemoveEventHandler XTREMOVEEVENTHANDLER
|
||||||
|
#define XtRemoveGrab XTREMOVEGRAB
|
||||||
|
#define XtRemoveInput XTREMOVEINPUT
|
||||||
|
#define XtRemoveTimeOut XTREMOVETIMEOUT
|
||||||
|
#define XtResizeWidget XTRESIZEWIDGET
|
||||||
|
#define XtResolvePathname XTRESOLVEPATHNAME
|
||||||
|
#define XtSetKeyboardFocus XTSETKEYBOARDFOCUS
|
||||||
|
#define XtSetMappedWhenManaged XTSETMAPPEDWHENMANAGED
|
||||||
|
#define XtSetSensitive XTSETSENSITIVE
|
||||||
|
#define XtSetTypeConverter XTSETTYPECONVERTER
|
||||||
|
#define XtSetValues XTSETVALUES
|
||||||
|
#define XtShellStrings XTSHELLSTRINGS
|
||||||
|
#define XtStrings XTSTRINGS
|
||||||
|
#define XtToolkitInitialize XTTOOLKITINITIALIZE
|
||||||
|
#define XtTranslateCoords XTTRANSLATECOORDS
|
||||||
|
#define XtTranslateKeycode XTTRANSLATEKEYCODE
|
||||||
|
#define XtUngrabKeyboard XTUNGRABKEYBOARD
|
||||||
|
#define XtUngrabPointer XTUNGRABPOINTER
|
||||||
|
#define XtUnmanageChild XTUNMANAGECHILD
|
||||||
|
#define XtUnmanageChildren XTUNMANAGECHILDREN
|
||||||
|
#define XtUnrealizeWidget XTUNREALIZEWIDGET
|
||||||
|
#define XtVaCreateManagedWidget XTVACREATEMANAGEDWIDGET
|
||||||
|
#define XtVaCreateWidget XTVACREATEWIDGET
|
||||||
|
#define XtVaGetValues XTVAGETVALUES
|
||||||
|
#define XtVaSetValues XTVASETVALUES
|
||||||
|
#define XtWarning XTWARNING
|
||||||
|
#define XtWidgetToApplicationContext XTWIDGETTOAPPLICATIONCONTEXT
|
||||||
|
#define XtWindowOfObject XTWINDOWOFOBJECT
|
||||||
|
#define XtWindowToWidget XTWINDOWTOWIDGET
|
||||||
|
#define XwcDrawString XWCDRAWSTRING
|
||||||
|
#define XwcFreeStringList XWCFREESTRINGLIST
|
||||||
|
#define XwcTextEscapement XWCTEXTESCAPEMENT
|
||||||
|
#define XwcTextExtents XWCTEXTEXTENTS
|
||||||
|
#define XwcTextListToTextProperty XWCTEXTLISTTOTEXTPROPERTY
|
||||||
|
#define XwcTextPropertyToTextList XWCTEXTPROPERTYTOTEXTLIST
|
||||||
|
#define _XmBottomShadowColorDefault _XMBOTTOMSHADOWCOLORDEFAULT
|
||||||
|
#define _XmClearBorder _XMCLEARBORDER
|
||||||
|
#define _XmConfigureObject _XMCONFIGUREOBJECT
|
||||||
|
#define _XmDestroyParentCallback _XMDESTROYPARENTCALLBACK
|
||||||
|
#define _XmDrawArrow _XMDRAWARROW
|
||||||
|
#define _XmDrawShadows _XMDRAWSHADOWS
|
||||||
|
#define _XmFontListGetDefaultFont _XMFONTLISTGETDEFAULTFONT
|
||||||
|
#define _XmFromHorizontalPixels _XMFROMHORIZONTALPIXELS
|
||||||
|
#define _XmFromVerticalPixels _XMFROMVERTICALPIXELS
|
||||||
|
#define _XmGetClassExtensionPtr _XMGETCLASSEXTENSIONPTR
|
||||||
|
#define _XmGetDefaultFontList _XMGETDEFAULTFONTLIST
|
||||||
|
#define _XmGetTextualDragIcon _XMGETTEXTUALDRAGICON
|
||||||
|
#define _XmGetWidgetExtData _XMGETWIDGETEXTDATA
|
||||||
|
#define _XmGrabKeyboard _XMGRABKEYBOARD
|
||||||
|
#define _XmGrabPointer _XMGRABPOINTER
|
||||||
|
#define _XmInheritClass _XMINHERITCLASS
|
||||||
|
#define _XmInputInGadget _XMINPUTINGADGET
|
||||||
|
#define _XmMakeGeometryRequest _XMMAKEGEOMETRYREQUEST
|
||||||
|
#define _XmMenuPopDown _XMMENUPOPDOWN
|
||||||
|
#define _XmMoveObject _XMMOVEOBJECT
|
||||||
|
#define _XmNavigChangeManaged _XMNAVIGCHANGEMANAGED
|
||||||
|
#define _XmOSBuildFileList _XMOSBUILDFILELIST
|
||||||
|
#define _XmOSFileCompare _XMOSFILECOMPARE
|
||||||
|
#define _XmOSFindPatternPart _XMOSFINDPATTERNPART
|
||||||
|
#define _XmOSQualifyFileSpec _XMOSQUALIFYFILESPEC
|
||||||
|
#define _XmPostPopupMenu _XMPOSTPOPUPMENU
|
||||||
|
#define _XmPrimitiveEnter _XMPRIMITIVEENTER
|
||||||
|
#define _XmPrimitiveLeave _XMPRIMITIVELEAVE
|
||||||
|
#define _XmRedisplayGadgets _XMREDISPLAYGADGETS
|
||||||
|
#define _XmShellIsExclusive _XMSHELLISEXCLUSIVE
|
||||||
|
#define _XmStringDraw _XMSTRINGDRAW
|
||||||
|
#define _XmStringGetTextConcat _XMSTRINGGETTEXTCONCAT
|
||||||
|
#define _XmStrings _XMSTRINGS
|
||||||
|
#define _XmToHorizontalPixels _XMTOHORIZONTALPIXELS
|
||||||
|
#define _XmToVerticalPixels _XMTOVERTICALPIXELS
|
||||||
|
#define _XmTopShadowColorDefault _XMTOPSHADOWCOLORDEFAULT
|
||||||
|
#define _Xm_fastPtr _XM_FASTPTR
|
||||||
|
#define _XtCheckSubclassFlag _XTCHECKSUBCLASSFLAG
|
||||||
|
#define _XtInherit _XTINHERIT
|
||||||
|
#define _XtInheritTranslations _XTINHERITTRANSLATIONS
|
||||||
|
#define applicationShellWidgetClass APPLICATIONSHELLWIDGETCLASS
|
||||||
|
#define compositeWidgetClass COMPOSITEWIDGETCLASS
|
||||||
|
#define overrideShellWidgetClass OVERRIDESHELLWIDGETCLASS
|
||||||
|
#define shellWidgetClass SHELLWIDGETCLASS
|
||||||
|
#define topLevelShellClassRec TOPLEVELSHELLCLASSREC
|
||||||
|
#define topLevelShellWidgetClass TOPLEVELSHELLWIDGETCLASS
|
||||||
|
#define transientShellWidgetClass TRANSIENTSHELLWIDGETCLASS
|
||||||
|
#define vendorShellClassRec VENDORSHELLCLASSREC
|
||||||
|
#define vendorShellWidgetClass VENDORSHELLWIDGETCLASS
|
||||||
|
#define wmShellWidgetClass WMSHELLWIDGETCLASS
|
||||||
|
#define xmArrowButtonWidgetClass XMARROWBUTTONWIDGETCLASS
|
||||||
|
#define xmCascadeButtonClassRec XMCASCADEBUTTONCLASSREC
|
||||||
|
#define xmCascadeButtonGadgetClass XMCASCADEBUTTONGADGETCLASS
|
||||||
|
#define xmCascadeButtonWidgetClass XMCASCADEBUTTONWIDGETCLASS
|
||||||
|
#define xmDialogShellWidgetClass XMDIALOGSHELLWIDGETCLASS
|
||||||
|
#define xmDrawingAreaWidgetClass XMDRAWINGAREAWIDGETCLASS
|
||||||
|
#define xmDrawnButtonWidgetClass XMDRAWNBUTTONWIDGETCLASS
|
||||||
|
#define xmFileSelectionBoxWidgetClass XMFILESELECTIONBOXWIDGETCLASS
|
||||||
|
#define xmFormWidgetClass XMFORMWIDGETCLASS
|
||||||
|
#define xmFrameWidgetClass XMFRAMEWIDGETCLASS
|
||||||
|
#define xmGadgetClass XMGADGETCLASS
|
||||||
|
#define xmLabelGadgetClass XMLABELGADGETCLASS
|
||||||
|
#define xmLabelWidgetClass XMLABELWIDGETCLASS
|
||||||
|
#define xmListWidgetClass XMLISTWIDGETCLASS
|
||||||
|
#define xmMainWindowWidgetClass XMMAINWINDOWWIDGETCLASS
|
||||||
|
#define xmManagerClassRec XMMANAGERCLASSREC
|
||||||
|
#define xmManagerWidgetClass XMMANAGERWIDGETCLASS
|
||||||
|
#define xmMenuShellWidgetClass XMMENUSHELLWIDGETCLASS
|
||||||
|
#define xmMessageBoxWidgetClass XMMESSAGEBOXWIDGETCLASS
|
||||||
|
#define xmPrimitiveClassRec XMPRIMITIVECLASSREC
|
||||||
|
#define xmPrimitiveWidgetClass XMPRIMITIVEWIDGETCLASS
|
||||||
|
#define xmPushButtonClassRec XMPUSHBUTTONCLASSREC
|
||||||
|
#define xmPushButtonGadgetClass XMPUSHBUTTONGADGETCLASS
|
||||||
|
#define xmPushButtonWidgetClass XMPUSHBUTTONWIDGETCLASS
|
||||||
|
#define xmRowColumnWidgetClass XMROWCOLUMNWIDGETCLASS
|
||||||
|
#define xmSashWidgetClass XMSASHWIDGETCLASS
|
||||||
|
#define xmScrollBarWidgetClass XMSCROLLBARWIDGETCLASS
|
||||||
|
#define xmScrolledWindowClassRec XMSCROLLEDWINDOWCLASSREC
|
||||||
|
#define xmScrolledWindowWidgetClass XMSCROLLEDWINDOWWIDGETCLASS
|
||||||
|
#define xmSeparatorGadgetClass XMSEPARATORGADGETCLASS
|
||||||
|
#define xmSeparatorWidgetClass XMSEPARATORWIDGETCLASS
|
||||||
|
#define xmTextFieldWidgetClass XMTEXTFIELDWIDGETCLASS
|
||||||
|
#define xmTextWidgetClass XMTEXTWIDGETCLASS
|
||||||
|
#define xmToggleButtonGadgetClass XMTOGGLEBUTTONGADGETCLASS
|
||||||
|
#define xmToggleButtonWidgetClass XMTOGGLEBUTTONWIDGETCLASS
|
||||||
|
#define XtRegisterDrawable _XTREGISTERWINDOW
|
||||||
|
#define XtUnregisterDrawable _XTUNREGISTERWINDOW
|
||||||
|
#define XQueryFont XQUERYFONT
|
||||||
|
#define XSetPlaneMask XSETPLANEMASK
|
||||||
|
#define XChangeKeyboardControl XCHANGEKEYBOARDCONTROL
|
||||||
|
#define XDestroySubwindows XDESTROYSUBWINDOWS
|
||||||
|
#define XFreeDeviceList XFREEDEVICELIST
|
||||||
|
#define XFreeDeviceState XFREEDEVICESTATE
|
||||||
|
#define XGetExtensionVersion XGETEXTENSIONVERSION
|
||||||
|
#define XGetRGBColormaps XGETRGBCOLORMAPS
|
||||||
|
#define XIconifyWindow XICONIFYWINDOW
|
||||||
|
#define XInstallColormap XINSTALLCOLORMAP
|
||||||
|
#define XListInputDevices XLISTINPUTDEVICES
|
||||||
|
#define XLookupKeysym XLOOKUPKEYSYM
|
||||||
|
#define XOpenDevice XOPENDEVICE
|
||||||
|
#define XQueryDeviceState XQUERYDEVICESTATE
|
||||||
|
#define XSelectExtensionEvent XSELECTEXTENSIONEVENT
|
||||||
|
#define XWarpPointer XWARPPOINTER
|
||||||
|
#define XmuLookupStandardColormap XMULOOKUPSTANDARDCOLORMAP
|
||||||
|
#define XAllocNamedColor XALLOCNAMEDCOLOR
|
||||||
|
#define XBlackPixelOfScreen XBLACKPIXELOFSCREEN
|
||||||
|
#define XDefaultColormap XDEFAULTCOLORMAP
|
||||||
|
#define XDefaultColormapOfScreen XDEFAULTCOLORMAPOFSCREEN
|
||||||
|
#define XDefaultDepth XDEFAULTDEPTH
|
||||||
|
#define XDefaultScreen XDEFAULTSCREEN
|
||||||
|
#define XDefaultVisual XDEFAULTVISUAL
|
||||||
|
#define XSetIconName XSETICONNAME
|
||||||
|
#define XtInitialize XTINITIALIZE
|
||||||
|
#define XtMainLoop XTMAINLOOP
|
||||||
|
#define DtSaverGetWindows DTSAVERGETWINDOWS
|
||||||
|
#define XAddHosts XADDHOSTS
|
||||||
|
#define XDisableAccessControl XDISABLEACCESSCONTROL
|
||||||
|
#define XEnableAccessControl XENABLEACCESSCONTROL
|
||||||
|
#define XFillArcs XFILLARCS
|
||||||
|
#define XForceScreenSaver XFORCESCREENSAVER
|
||||||
|
#define XGetScreenSaver XGETSCREENSAVER
|
||||||
|
#define XListHosts XLISTHOSTS
|
||||||
|
#define XReadBitmapFile XREADBITMAPFILE
|
||||||
|
#define XRemoveHosts XREMOVEHOSTS
|
||||||
|
#define XResetScreenSaver XRESETSCREENSAVER
|
||||||
|
#define XResourceManagerString XRESOURCEMANAGERSTRING
|
||||||
|
#define XSetScreenSaver XSETSCREENSAVER
|
||||||
|
#define XStringListToTextProperty XSTRINGLISTTOTEXTPROPERTY
|
||||||
|
#define XrmDestroyDatabase XRMDESTROYDATABASE
|
||||||
|
#define XrmGetFileDatabase XRMGETFILEDATABASE
|
||||||
|
#define XrmGetStringDatabase XRMGETSTRINGDATABASE
|
||||||
|
#define XrmInitialize XRMINITIALIZE
|
||||||
|
#define XrmMergeDatabases XRMMERGEDATABASES
|
||||||
|
#define XrmParseCommand XRMPARSECOMMAND
|
||||||
|
#define XrmPutLineResource XRMPUTLINERESOURCE
|
||||||
|
#define XrmQPutStringResource XRMQPUTSTRINGRESOURCE
|
||||||
|
#define XrmStringToBindingQuarkList XRMSTRINGTOBINDINGQUARKLIST
|
||||||
|
#define XrmStringToQuark XRMSTRINGTOQUARK
|
||||||
|
#define XmCreateLabel XMCREATELABEL
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
extern void XtFree(char*);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define pthread_attr_create PTHREAD_ATTR_CREATE
|
||||||
|
#define pthread_attr_delete PTHREAD_ATTR_DELETE
|
||||||
|
#define pthread_attr_destroy PTHREAD_ATTR_DESTROY
|
||||||
|
#define pthread_attr_getdetach_np PTHREAD_ATTR_GETDETACH_NP
|
||||||
|
#define pthread_attr_getguardsize_np PTHREAD_ATTR_GETGUARDSIZE_NP
|
||||||
|
#define pthread_attr_getinheritsched PTHREAD_ATTR_GETINHERITSCHED
|
||||||
|
#define pthread_attr_getprio PTHREAD_ATTR_GETPRIO
|
||||||
|
#define pthread_attr_getsched PTHREAD_ATTR_GETSCHED
|
||||||
|
#define pthread_attr_getschedparam PTHREAD_ATTR_GETSCHEDPARAM
|
||||||
|
#define pthread_attr_getstacksize PTHREAD_ATTR_GETSTACKSIZE
|
||||||
|
#define pthread_attr_init PTHREAD_ATTR_INIT
|
||||||
|
#define pthread_attr_setdetach_np PTHREAD_ATTR_SETDETACH_NP
|
||||||
|
#define pthread_attr_setdetachstate PTHREAD_ATTR_SETDETACHSTATE
|
||||||
|
#define pthread_attr_setguardsize_np PTHREAD_ATTR_SETGUARDSIZE_NP
|
||||||
|
#define pthread_attr_setinheritsched PTHREAD_ATTR_SETINHERITSCHED
|
||||||
|
#define pthread_attr_setprio PTHREAD_ATTR_SETPRIO
|
||||||
|
#define pthread_attr_setsched PTHREAD_ATTR_SETSCHED
|
||||||
|
#define pthread_attr_setschedparam PTHREAD_ATTR_SETSCHEDPARAM
|
||||||
|
#define pthread_attr_setschedpolicy PTHREAD_ATTR_SETSCHEDPOLICY
|
||||||
|
#define pthread_attr_setstacksize PTHREAD_ATTR_SETSTACKSIZE
|
||||||
|
#define pthread_cancel PTHREAD_CANCEL
|
||||||
|
#define pthread_cancel_e PTHREAD_CANCEL_E
|
||||||
|
#define pthread_cond_broadcast PTHREAD_COND_BROADCAST
|
||||||
|
#define pthread_cond_destroy PTHREAD_COND_DESTROY
|
||||||
|
#define pthread_cond_init PTHREAD_COND_INIT
|
||||||
|
#define pthread_cond_sig_preempt_int_np PTHREAD_COND_SIG_PREEMPT_INT_NP
|
||||||
|
#define pthread_cond_signal PTHREAD_COND_SIGNAL
|
||||||
|
#define pthread_cond_signal_int_np PTHREAD_COND_SIGNAL_INT_NP
|
||||||
|
#define pthread_cond_timedwait PTHREAD_COND_TIMEDWAIT
|
||||||
|
#define pthread_cond_wait PTHREAD_COND_WAIT
|
||||||
|
#define pthread_condattr_create PTHREAD_CONDATTR_CREATE
|
||||||
|
#define pthread_condattr_delete PTHREAD_CONDATTR_DELETE
|
||||||
|
#define pthread_condattr_init PTHREAD_CONDATTR_INIT
|
||||||
|
#define pthread_create PTHREAD_CREATE
|
||||||
|
#define pthread_delay_np PTHREAD_DELAY_NP
|
||||||
|
#define pthread_detach PTHREAD_DETACH
|
||||||
|
#define pthread_equal PTHREAD_EQUAL
|
||||||
|
#define pthread_exc_fetch_fp_np PTHREAD_EXC_FETCH_FP_NP
|
||||||
|
#define pthread_exc_handler_np PTHREAD_EXC_HANDLER_NP
|
||||||
|
#define pthread_exc_pop_ctx_np PTHREAD_EXC_POP_CTX_NP
|
||||||
|
#define pthread_exc_push_ctx_np PTHREAD_EXC_PUSH_CTX_NP
|
||||||
|
#define pthread_exc_savecontext_np PTHREAD_EXC_SAVECONTEXT_NP
|
||||||
|
#define pthread_exit PTHREAD_EXIT
|
||||||
|
#define pthread_get_expiration_np PTHREAD_GET_EXPIRATION_NP
|
||||||
|
#define pthread_getprio PTHREAD_GETPRIO
|
||||||
|
#define pthread_getschedparam PTHREAD_GETSCHEDPARAM
|
||||||
|
#define pthread_getscheduler PTHREAD_GETSCHEDULER
|
||||||
|
#define pthread_getspecific PTHREAD_GETSPECIFIC
|
||||||
|
#define pthread_getunique_np PTHREAD_GETUNIQUE_NP
|
||||||
|
#define pthread_join PTHREAD_JOIN
|
||||||
|
#define pthread_join32 PTHREAD_JOIN32
|
||||||
|
#define pthread_keycreate PTHREAD_KEYCREATE
|
||||||
|
#define pthread_key_create PTHREAD_KEY_CREATE
|
||||||
|
#define pthread_kill PTHREAD_KILL
|
||||||
|
#define pthread_lock_global_np PTHREAD_LOCK_GLOBAL_NP
|
||||||
|
#define pthread_mutex_destroy PTHREAD_MUTEX_DESTROY
|
||||||
|
#define pthread_mutex_init PTHREAD_MUTEX_INIT
|
||||||
|
#define pthread_mutex_lock PTHREAD_MUTEX_LOCK
|
||||||
|
#define pthread_mutex_trylock PTHREAD_MUTEX_TRYLOCK
|
||||||
|
#define pthread_mutex_unlock PTHREAD_MUTEX_UNLOCK
|
||||||
|
#define pthread_mutexattr_create PTHREAD_MUTEXATTR_CREATE
|
||||||
|
#define pthread_mutexattr_delete PTHREAD_MUTEXATTR_DELETE
|
||||||
|
#define pthread_mutexattr_destroy PTHREAD_MUTEXATTR_DESTROY
|
||||||
|
#define pthread_mutexattr_getkind_np PTHREAD_MUTEXATTR_GETKIND_NP
|
||||||
|
#define pthread_mutexattr_init PTHREAD_MUTEXATTR_INIT
|
||||||
|
#define pthread_mutexattr_setkind_np PTHREAD_MUTEXATTR_SETKIND_NP
|
||||||
|
#define pthread_mutexattr_settype_np PTHREAD_MUTEXATTR_SETTYPE_NP
|
||||||
|
#define pthread_once PTHREAD_ONCE
|
||||||
|
#define pthread_resume_np PTHREAD_RESUME_NP
|
||||||
|
#define pthread_self PTHREAD_SELF
|
||||||
|
#define pthread_setasynccancel PTHREAD_SETASYNCCANCEL
|
||||||
|
#define pthread_setcancel PTHREAD_SETCANCEL
|
||||||
|
#define pthread_setcancelstate PTHREAD_SETCANCELSTATE
|
||||||
|
#define pthread_setprio PTHREAD_SETPRIO
|
||||||
|
#define pthread_setschedparam PTHREAD_SETSCHEDPARAM
|
||||||
|
#define pthread_setscheduler PTHREAD_SETSCHEDULER
|
||||||
|
#define pthread_setspecific PTHREAD_SETSPECIFIC
|
||||||
|
#define pthread_suspend_np PTHREAD_SUSPEND_NP
|
||||||
|
#define pthread_testcancel PTHREAD_TESTCANCEL
|
||||||
|
#define pthread_unlock_global_np PTHREAD_UNLOCK_GLOBAL_NP
|
||||||
|
#define pthread_yield PTHREAD_YIELD
|
||||||
|
#define pthread_yield_np PTHREAD_YIELD_NP
|
||||||
|
#define XDefaultRootWindow XDEFAULTROOTWINDOW
|
||||||
|
#define XDisplayCells XDISPLAYCELLS
|
||||||
|
#define XMaxRequestSize XMAXREQUESTSIZE
|
||||||
|
#define XScreenOfDisplay XSCREENOFDISPLAY
|
||||||
|
#define XSetFillRule XSETFILLRULE
|
||||||
|
#define XmActivateProtocol XMACTIVATEPROTOCOL
|
||||||
|
#define XmCreateBulletinBoardDialog XMCREATEBULLETINBOARDDIALOG
|
||||||
|
#define XmCreateErrorDialog XMCREATEERRORDIALOG
|
||||||
|
#define XmCreateWarningDialog XMCREATEWARNINGDIALOG
|
||||||
|
#define XmCvtCTToXmString XMCVTCTTOXMSTRING
|
||||||
|
#define XmDestroyPixmap XMDESTROYPIXMAP
|
||||||
|
#define XmGetPixmap XMGETPIXMAP
|
||||||
|
#define XmInstallImage XMINSTALLIMAGE
|
||||||
|
#define XmListAddItems XMLISTADDITEMS
|
||||||
|
#define XmListDeleteItem XMLISTDELETEITEM
|
||||||
|
#define XmListItemExists XMLISTITEMEXISTS
|
||||||
|
#define XmListItemPos XMLISTITEMPOS
|
||||||
|
#define XmListReplaceItems XMLISTREPLACEITEMS
|
||||||
|
#define XmListReplaceItemsPos XMLISTREPLACEITEMSPOS
|
||||||
|
#define XmRemoveProtocols XMREMOVEPROTOCOLS
|
||||||
|
#define XmRemoveTabGroup XMREMOVETABGROUP
|
||||||
|
#define XmSetColorCalculation XMSETCOLORCALCULATION
|
||||||
|
#define XmTextCopy XMTEXTCOPY
|
||||||
|
#define XmTextCut XMTEXTCUT
|
||||||
|
#define XmTextFieldClearSelection XMTEXTFIELDCLEARSELECTION
|
||||||
|
#define XmTextFieldCopy XMTEXTFIELDCOPY
|
||||||
|
#define XmTextFieldCut XMTEXTFIELDCUT
|
||||||
|
#define XmTextFieldGetMaxLength XMTEXTFIELDGETMAXLENGTH
|
||||||
|
#define XmTextFieldGetSelectionPosition XMTEXTFIELDGETSELECTIONPOSITION
|
||||||
|
#define XmTextFieldPaste XMTEXTFIELDPASTE
|
||||||
|
#define XmTextFieldReplace XMTEXTFIELDREPLACE
|
||||||
|
#define XmTextFieldSetAddMode XMTEXTFIELDSETADDMODE
|
||||||
|
#define XmTextFieldSetHighlight XMTEXTFIELDSETHIGHLIGHT
|
||||||
|
#define XmTextFieldSetInsertionPosition XMTEXTFIELDSETINSERTIONPOSITION
|
||||||
|
#define XmTextFieldSetMaxLength XMTEXTFIELDSETMAXLENGTH
|
||||||
|
#define XmTextFieldShowPosition XMTEXTFIELDSHOWPOSITION
|
||||||
|
#define XmTextGetEditable XMTEXTGETEDITABLE
|
||||||
|
#define XmTextPaste XMTEXTPASTE
|
||||||
|
#define XmTextPosToXY XMTEXTPOSTOXY
|
||||||
|
#define XmTextSetEditable XMTEXTSETEDITABLE
|
||||||
|
#define XmTextShowPosition XMTEXTSHOWPOSITION
|
||||||
|
#define XmUninstallImage XMUNINSTALLIMAGE
|
||||||
|
#define XmuCvtStringToBitmap XMUCVTSTRINGTOBITMAP
|
||||||
|
#define XrmPutFileDatabase XRMPUTFILEDATABASE
|
||||||
|
#define XtAddConverter XTADDCONVERTER
|
||||||
|
#define XtError XTERROR
|
||||||
|
#define XtVaCreatePopupShell XTVACREATEPOPUPSHELL
|
||||||
|
#define pthread_attr_getschedpolicy PTHREAD_ATTR_GETSCHEDPOLICY
|
||||||
|
#define pthread_key_delete PTHREAD_KEY_DELETE
|
||||||
|
#define xmBulletinBoardWidgetClass XMBULLETINBOARDWIDGETCLASS
|
||||||
|
#define xmScaleWidgetClass XMSCALEWIDGETCLASS
|
||||||
|
#define XtDisplay XTDISPLAY
|
||||||
|
#define XtScreen XTSCREEN
|
||||||
|
#define XAllocIconSize XALLOCICONSIZE
|
||||||
|
#define XAllocStandardColormap XALLOCSTANDARDCOLORMAP
|
||||||
|
#define XAllowEvents XALLOWEVENTS
|
||||||
|
#define XBlackPixel XBLACKPIXEL
|
||||||
|
#define XCopyColormapAndFree XCOPYCOLORMAPANDFREE
|
||||||
|
#define XDefaultGC XDEFAULTGC
|
||||||
|
#define XDisplayHeight XDISPLAYHEIGHT
|
||||||
|
#define XDisplayWidth XDISPLAYWIDTH
|
||||||
|
#define XGetCommand XGETCOMMAND
|
||||||
|
#define XGetIconSizes XGETICONSIZES
|
||||||
|
#define XKillClient XKILLCLIENT
|
||||||
|
#define XListInstalledColormaps XLISTINSTALLEDCOLORMAPS
|
||||||
|
#define XRootWindow XROOTWINDOW
|
||||||
|
#define XWMGeometry XWMGEOMETRY
|
||||||
|
#define XWhitePixel XWHITEPIXEL
|
||||||
|
#define XrmCombineDatabase XRMCOMBINEDATABASE
|
||||||
|
#define XrmCombineFileDatabase XRMCOMBINEFILEDATABASE
|
||||||
|
#define XSetStandardProperties XSETSTANDARDPROPERTIES
|
||||||
|
#define XSetState XSETSTATE
|
||||||
|
#define XDrawRectangles XDRAWRECTANGLES
|
||||||
|
#define XGrabButton XGRABBUTTON
|
||||||
|
#define XLookupColor XLOOKUPCOLOR
|
||||||
|
#define XMapSubwindows XMAPSUBWINDOWS
|
||||||
|
#define XRecolorCursor XRECOLORCURSOR
|
||||||
|
#define XStoreBytes XSTOREBYTES
|
||||||
|
#define XUngrabButton XUNGRABBUTTON
|
||||||
|
#define XUninstallColormap XUNINSTALLCOLORMAP
|
||||||
|
#define lib$wait LIB$WAIT
|
||||||
|
#define lib$find_file LIB$FIND_FILE
|
||||||
|
#define lib$find_file_end LIB$FIND_FILE_END
|
||||||
|
#define lib$set_symbol LIB$SET_SYMBOL
|
||||||
|
#define lib$sfree1_dd LIB$SFREE1_DD
|
||||||
|
#define lib$spawn LIB$SPAWN
|
||||||
|
#define sys$assign SYS$ASSIGN
|
||||||
|
#define sys$crembx SYS$CREMBX
|
||||||
|
#define sys$dassgn SYS$DASSGN
|
||||||
|
#define sys$dclexh SYS$DCLEXH
|
||||||
|
#define sys$getdviw SYS$GETDVIW
|
||||||
|
#define sys$getsyiw SYS$GETSYIW
|
||||||
|
#define sys$qio SYS$QIO
|
||||||
|
#define sys$qiow SYS$QIOW
|
||||||
|
#define sys$setef SYS$SETEF
|
||||||
|
#define sys$synch SYS$SYNCH
|
||||||
|
#define XDrawText XDRAWTEXT
|
||||||
|
#define XtCloseDisplay XTCLOSEDISPLAY
|
||||||
|
#define XtDestroyApplicationContext XTDESTROYAPPLICATIONCONTEXT
|
||||||
|
#define lib$ediv LIB$EDIV
|
||||||
|
#define lib$subx LIB$SUBX
|
||||||
|
#define sys$bintim SYS$BINTIM
|
||||||
|
#define sys$gettim SYS$GETTIM
|
||||||
|
#define XFetchName XFETCHNAME
|
||||||
|
#define XPeekIfEvent XPEEKIFEVENT
|
||||||
|
#define XQueryKeymap XQUERYKEYMAP
|
||||||
|
#endif
|
142
reactos/lib/mesa32/include/GL/wmesa.h
Normal file
142
reactos/lib/mesa32/include/GL/wmesa.h
Normal file
|
@ -0,0 +1,142 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 3.0
|
||||||
|
* Copyright (C) 1995-1998 Brian Paul
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 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
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Windows driver by: Mark E. Peterson (markp@ic.mankato.mn.us)
|
||||||
|
* Updated by Li Wei (liwei@aiar.xjtu.edu.cn)
|
||||||
|
*
|
||||||
|
*
|
||||||
|
***************************************************************
|
||||||
|
* WMesa *
|
||||||
|
* version 2.3 *
|
||||||
|
* *
|
||||||
|
* By *
|
||||||
|
* Li Wei *
|
||||||
|
* Institute of Artificial Intelligence & Robotics *
|
||||||
|
* Xi'an Jiaotong University *
|
||||||
|
* Email: liwei@aiar.xjtu.edu.cn *
|
||||||
|
* Web page: http://sun.aiar.xjtu.edu.cn *
|
||||||
|
* *
|
||||||
|
* July 7th, 1997 *
|
||||||
|
***************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef WMESA_H
|
||||||
|
#define WMESA_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#include "gl\gl.h"
|
||||||
|
|
||||||
|
#if defined(_MSV_VER) && !defined(__GNUC__)
|
||||||
|
# pragma warning (disable:4273)
|
||||||
|
# pragma warning( disable : 4244 ) /* '=' : conversion from 'const double ' to 'float ', possible loss of data */
|
||||||
|
# pragma warning( disable : 4018 ) /* '<' : signed/unsigned mismatch */
|
||||||
|
# pragma warning( disable : 4305 ) /* '=' : truncation from 'const double ' to 'float ' */
|
||||||
|
# pragma warning( disable : 4013 ) /* 'function' undefined; assuming extern returning int */
|
||||||
|
# pragma warning( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */
|
||||||
|
# pragma warning( disable : 4273 ) /* 'identifier' : inconsistent DLL linkage. dllexport assumed */
|
||||||
|
# if (MESA_WARNQUIET>1)
|
||||||
|
# pragma warning( disable : 4146 ) /* unary minus operator applied to unsigned type, result still unsigned */
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is the WMesa context 'handle':
|
||||||
|
*/
|
||||||
|
typedef struct wmesa_context *WMesaContext;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new WMesaContext for rendering into a window. You must
|
||||||
|
* have already created the window of correct visual type and with an
|
||||||
|
* appropriate colormap.
|
||||||
|
*
|
||||||
|
* Input:
|
||||||
|
* hWnd - Window handle
|
||||||
|
* Pal - Palette to use
|
||||||
|
* rgb_flag - GL_TRUE = RGB mode,
|
||||||
|
* GL_FALSE = color index mode
|
||||||
|
* db_flag - GL_TRUE = double-buffered,
|
||||||
|
* GL_FALSE = single buffered
|
||||||
|
* alpha_flag - GL_TRUE = create software alpha buffer,
|
||||||
|
* GL_FALSE = no software alpha buffer
|
||||||
|
*
|
||||||
|
* Note: Indexed mode requires double buffering under Windows.
|
||||||
|
*
|
||||||
|
* Return: a WMesa_context or NULL if error.
|
||||||
|
*/
|
||||||
|
extern WMesaContext WMesaCreateContext(HWND hWnd,HPALETTE* pPal,
|
||||||
|
GLboolean rgb_flag,
|
||||||
|
GLboolean db_flag,
|
||||||
|
GLboolean alpha_flag);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy a rendering context as returned by WMesaCreateContext()
|
||||||
|
*/
|
||||||
|
/*extern void WMesaDestroyContext( WMesaContext ctx );*/
|
||||||
|
extern void WMesaDestroyContext( void );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make the specified context the current one.
|
||||||
|
*/
|
||||||
|
extern void WMesaMakeCurrent( WMesaContext ctx );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a handle to the current context.
|
||||||
|
*/
|
||||||
|
extern WMesaContext WMesaGetCurrentContext( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Swap the front and back buffers for the current context. No action
|
||||||
|
* taken if the context is not double buffered.
|
||||||
|
*/
|
||||||
|
extern void WMesaSwapBuffers(void);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* In indexed color mode we need to know when the palette changes.
|
||||||
|
*/
|
||||||
|
extern void WMesaPaletteChange(HPALETTE Pal);
|
||||||
|
|
||||||
|
extern void WMesaMove(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
390
reactos/lib/mesa32/include/GL/xmesa.h
Normal file
390
reactos/lib/mesa32/include/GL/xmesa.h
Normal file
|
@ -0,0 +1,390 @@
|
||||||
|
/*
|
||||||
|
* Mesa 3-D graphics library
|
||||||
|
* Version: 4.1
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999-2002 Brian Paul 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 and this permission notice 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
|
||||||
|
* BRIAN PAUL 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mesa/X11 interface. This header file serves as the documentation for
|
||||||
|
* the Mesa/X11 interface functions.
|
||||||
|
*
|
||||||
|
* Note: this interface isn't intended for user programs. It's primarily
|
||||||
|
* just for implementing the pseudo-GLX interface.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Sample Usage:
|
||||||
|
|
||||||
|
In addition to the usual X calls to select a visual, create a colormap
|
||||||
|
and create a window, you must do the following to use the X/Mesa interface:
|
||||||
|
|
||||||
|
1. Call XMesaCreateVisual() to make an XMesaVisual from an XVisualInfo.
|
||||||
|
|
||||||
|
2. Call XMesaCreateContext() to create an X/Mesa rendering context, given
|
||||||
|
the XMesaVisual.
|
||||||
|
|
||||||
|
3. Call XMesaCreateWindowBuffer() to create an XMesaBuffer from an X window
|
||||||
|
and XMesaVisual.
|
||||||
|
|
||||||
|
4. Call XMesaMakeCurrent() to bind the XMesaBuffer to an XMesaContext and
|
||||||
|
to make the context the current one.
|
||||||
|
|
||||||
|
5. Make gl* calls to render your graphics.
|
||||||
|
|
||||||
|
6. Use XMesaSwapBuffers() when double buffering to swap front/back buffers.
|
||||||
|
|
||||||
|
7. Before the X window is destroyed, call XMesaDestroyBuffer().
|
||||||
|
|
||||||
|
8. Before exiting, call XMesaDestroyVisual and XMesaDestroyContext.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef XMESA_H
|
||||||
|
#define XMESA_H
|
||||||
|
|
||||||
|
#ifdef __VMS
|
||||||
|
#include <GL/vms_x_fix.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XFree86Server
|
||||||
|
#include "xmesa_xf86.h"
|
||||||
|
#else
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
#include "xmesa_x.h"
|
||||||
|
#endif
|
||||||
|
#include "GL/gl.h"
|
||||||
|
|
||||||
|
#ifdef AMIWIN
|
||||||
|
#include <pragmas/xlib_pragmas.h>
|
||||||
|
extern struct Library *XLibBase;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define XMESA_MAJOR_VERSION 4
|
||||||
|
#define XMESA_MINOR_VERSION 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Values passed to XMesaGetString:
|
||||||
|
*/
|
||||||
|
#define XMESA_VERSION 1
|
||||||
|
#define XMESA_EXTENSIONS 2
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Values passed to XMesaSetFXmode:
|
||||||
|
*/
|
||||||
|
#define XMESA_FX_WINDOW 1
|
||||||
|
#define XMESA_FX_FULLSCREEN 2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct xmesa_context *XMesaContext;
|
||||||
|
|
||||||
|
typedef struct xmesa_visual *XMesaVisual;
|
||||||
|
|
||||||
|
typedef struct xmesa_buffer *XMesaBuffer;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new X/Mesa visual.
|
||||||
|
* Input: display - X11 display
|
||||||
|
* visinfo - an XVisualInfo pointer
|
||||||
|
* rgb_flag - GL_TRUE = RGB mode,
|
||||||
|
* GL_FALSE = color index mode
|
||||||
|
* alpha_flag - alpha buffer requested?
|
||||||
|
* db_flag - GL_TRUE = double-buffered,
|
||||||
|
* GL_FALSE = single buffered
|
||||||
|
* stereo_flag - stereo visual?
|
||||||
|
* ximage_flag - GL_TRUE = use an XImage for back buffer,
|
||||||
|
* GL_FALSE = use an off-screen pixmap for back buffer
|
||||||
|
* depth_size - requested bits/depth values, or zero
|
||||||
|
* stencil_size - requested bits/stencil values, or zero
|
||||||
|
* accum_red_size - requested bits/red accum values, or zero
|
||||||
|
* accum_green_size - requested bits/green accum values, or zero
|
||||||
|
* accum_blue_size - requested bits/blue accum values, or zero
|
||||||
|
* accum_alpha_size - requested bits/alpha accum values, or zero
|
||||||
|
* num_samples - number of samples/pixel if multisampling, or zero
|
||||||
|
* level - visual level, usually 0
|
||||||
|
* visualCaveat - ala the GLX extension, usually GLX_NONE_EXT
|
||||||
|
* Return; a new XMesaVisual or 0 if error.
|
||||||
|
*/
|
||||||
|
extern XMesaVisual XMesaCreateVisual( XMesaDisplay *display,
|
||||||
|
XMesaVisualInfo visinfo,
|
||||||
|
GLboolean rgb_flag,
|
||||||
|
GLboolean alpha_flag,
|
||||||
|
GLboolean db_flag,
|
||||||
|
GLboolean stereo_flag,
|
||||||
|
GLboolean ximage_flag,
|
||||||
|
GLint depth_size,
|
||||||
|
GLint stencil_size,
|
||||||
|
GLint accum_red_size,
|
||||||
|
GLint accum_green_size,
|
||||||
|
GLint accum_blue_size,
|
||||||
|
GLint accum_alpha_size,
|
||||||
|
GLint num_samples,
|
||||||
|
GLint level,
|
||||||
|
GLint visualCaveat );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy an XMesaVisual, but not the associated XVisualInfo.
|
||||||
|
*/
|
||||||
|
extern void XMesaDestroyVisual( XMesaVisual v );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new XMesaContext for rendering into an X11 window.
|
||||||
|
*
|
||||||
|
* Input: visual - an XMesaVisual
|
||||||
|
* share_list - another XMesaContext with which to share display
|
||||||
|
* lists or NULL if no sharing is wanted.
|
||||||
|
* Return: an XMesaContext or NULL if error.
|
||||||
|
*/
|
||||||
|
extern XMesaContext XMesaCreateContext( XMesaVisual v,
|
||||||
|
XMesaContext share_list );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy a rendering context as returned by XMesaCreateContext()
|
||||||
|
*/
|
||||||
|
extern void XMesaDestroyContext( XMesaContext c );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create an XMesaBuffer from an X window.
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaCreateWindowBuffer( XMesaVisual v, XMesaWindow w );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create an XMesaBuffer from an X pixmap.
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaCreatePixmapBuffer( XMesaVisual v,
|
||||||
|
XMesaPixmap p,
|
||||||
|
XMesaColormap cmap );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Destroy an XMesaBuffer, but not the corresponding window or pixmap.
|
||||||
|
*/
|
||||||
|
extern void XMesaDestroyBuffer( XMesaBuffer b );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the XMesaBuffer handle which corresponds to an X drawable, if any.
|
||||||
|
*
|
||||||
|
* New in Mesa 2.3.
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaFindBuffer( XMesaDisplay *dpy,
|
||||||
|
XMesaDrawable d );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bind a buffer to a context and make the context the current one.
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaMakeCurrent( XMesaContext c,
|
||||||
|
XMesaBuffer b );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bind two buffers (read and draw) to a context and make the
|
||||||
|
* context the current one.
|
||||||
|
* New in Mesa 3.3
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaMakeCurrent2( XMesaContext c,
|
||||||
|
XMesaBuffer drawBuffer,
|
||||||
|
XMesaBuffer readBuffer );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Unbind the current context from its buffer.
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaUnbindContext( XMesaContext c );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a handle to the current context.
|
||||||
|
*/
|
||||||
|
extern XMesaContext XMesaGetCurrentContext( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return handle to the current (draw) buffer.
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaGetCurrentBuffer( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return handle to the current read buffer.
|
||||||
|
* New in Mesa 3.3
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaGetCurrentReadBuffer( void );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Swap the front and back buffers for the given buffer. No action is
|
||||||
|
* taken if the buffer is not double buffered.
|
||||||
|
*/
|
||||||
|
extern void XMesaSwapBuffers( XMesaBuffer b );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copy a sub-region of the back buffer to the front buffer.
|
||||||
|
*
|
||||||
|
* New in Mesa 2.6
|
||||||
|
*/
|
||||||
|
extern void XMesaCopySubBuffer( XMesaBuffer b,
|
||||||
|
int x,
|
||||||
|
int y,
|
||||||
|
int width,
|
||||||
|
int height );
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a pointer to the the Pixmap or XImage being used as the back
|
||||||
|
* color buffer of an XMesaBuffer. This function is a way to get "under
|
||||||
|
* the hood" of X/Mesa so one can manipulate the back buffer directly.
|
||||||
|
* Input: b - the XMesaBuffer
|
||||||
|
* Output: pixmap - pointer to back buffer's Pixmap, or 0
|
||||||
|
* ximage - pointer to back buffer's XImage, or NULL
|
||||||
|
* Return: GL_TRUE = context is double buffered
|
||||||
|
* GL_FALSE = context is single buffered
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaGetBackBuffer( XMesaBuffer b,
|
||||||
|
XMesaPixmap *pixmap,
|
||||||
|
XMesaImage **ximage );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the depth buffer associated with an XMesaBuffer.
|
||||||
|
* Input: b - the XMesa buffer handle
|
||||||
|
* Output: width, height - size of buffer in pixels
|
||||||
|
* bytesPerValue - bytes per depth value (2 or 4)
|
||||||
|
* buffer - pointer to depth buffer values
|
||||||
|
* Return: GL_TRUE or GL_FALSE to indicate success or failure.
|
||||||
|
*
|
||||||
|
* New in Mesa 2.4.
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaGetDepthBuffer( XMesaBuffer b,
|
||||||
|
GLint *width,
|
||||||
|
GLint *height,
|
||||||
|
GLint *bytesPerValue,
|
||||||
|
void **buffer );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flush/sync a context
|
||||||
|
*/
|
||||||
|
extern void XMesaFlush( XMesaContext c );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get an X/Mesa-specific string.
|
||||||
|
* Input: name - either XMESA_VERSION or XMESA_EXTENSIONS
|
||||||
|
*/
|
||||||
|
extern const char *XMesaGetString( XMesaContext c, int name );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Scan for XMesaBuffers whose window/pixmap has been destroyed, then free
|
||||||
|
* any memory used by that buffer.
|
||||||
|
*
|
||||||
|
* New in Mesa 2.3.
|
||||||
|
*/
|
||||||
|
extern void XMesaGarbageCollect( void );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a dithered pixel value.
|
||||||
|
* Input: c - XMesaContext
|
||||||
|
* x, y - window coordinate
|
||||||
|
* red, green, blue, alpha - color components in [0,1]
|
||||||
|
* Return: pixel value
|
||||||
|
*
|
||||||
|
* New in Mesa 2.3.
|
||||||
|
*/
|
||||||
|
extern unsigned long XMesaDitherColor( XMesaContext xmesa,
|
||||||
|
GLint x,
|
||||||
|
GLint y,
|
||||||
|
GLfloat red,
|
||||||
|
GLfloat green,
|
||||||
|
GLfloat blue,
|
||||||
|
GLfloat alpha );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 3Dfx Glide driver only!
|
||||||
|
* Set 3Dfx/Glide full-screen or window rendering mode.
|
||||||
|
* Input: mode - either XMESA_FX_WINDOW (window rendering mode) or
|
||||||
|
* XMESA_FX_FULLSCREEN (full-screen rendering mode)
|
||||||
|
* Return: GL_TRUE if success
|
||||||
|
* GL_FALSE if invalid mode or if not using 3Dfx driver
|
||||||
|
*
|
||||||
|
* New in Mesa 2.6.
|
||||||
|
*/
|
||||||
|
extern GLboolean XMesaSetFXmode( GLint mode );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reallocate the back/depth/stencil/accum/etc/ buffers associated with
|
||||||
|
* buffer <b> if its size has changed.
|
||||||
|
*
|
||||||
|
* New in Mesa 4.0.2
|
||||||
|
*/
|
||||||
|
extern void XMesaResizeBuffers( XMesaBuffer b );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a pbuffer.
|
||||||
|
* New in Mesa 4.1
|
||||||
|
*/
|
||||||
|
extern XMesaBuffer XMesaCreatePBuffer(XMesaVisual v, XMesaColormap cmap,
|
||||||
|
unsigned int width, unsigned int height);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
84
reactos/lib/mesa32/include/GL/xmesa_x.h
Normal file
84
reactos/lib/mesa32/include/GL/xmesa_x.h
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
|
||||||
|
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
|
||||||
|
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, sub license, 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 and this permission notice (including the
|
||||||
|
next paragraph) 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 NON-INFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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.
|
||||||
|
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Authors:
|
||||||
|
* Kevin E. Martin <kevin@precisioninsight.com>
|
||||||
|
*
|
||||||
|
* When we're building the XMesa driver for stand-alone Mesa we
|
||||||
|
* include this file when building the xm_*.c files.
|
||||||
|
* We need to define some types and macros differently when building
|
||||||
|
* in the Xserver vs. stand-alone Mesa.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _XMESA_X_H_
|
||||||
|
#define _XMESA_X_H_
|
||||||
|
|
||||||
|
typedef Display XMesaDisplay;
|
||||||
|
typedef Pixmap XMesaPixmap;
|
||||||
|
typedef Colormap XMesaColormap;
|
||||||
|
typedef Drawable XMesaDrawable;
|
||||||
|
typedef Window XMesaWindow;
|
||||||
|
typedef GC XMesaGC;
|
||||||
|
typedef XVisualInfo *XMesaVisualInfo;
|
||||||
|
typedef XImage XMesaImage;
|
||||||
|
typedef XPoint XMesaPoint;
|
||||||
|
typedef XColor XMesaColor;
|
||||||
|
|
||||||
|
#define XMesaDestroyImage XDestroyImage
|
||||||
|
|
||||||
|
#define XMesaPutPixel XPutPixel
|
||||||
|
#define XMesaGetPixel XGetPixel
|
||||||
|
|
||||||
|
#define XMesaSetForeground XSetForeground
|
||||||
|
#define XMesaSetBackground XSetBackground
|
||||||
|
#define XMesaSetPlaneMask XSetPlaneMask
|
||||||
|
#define XMesaSetFunction XSetFunction
|
||||||
|
#define XMesaSetFillStyle XSetFillStyle
|
||||||
|
#define XMesaSetTile XSetTile
|
||||||
|
|
||||||
|
#define XMesaDrawPoint XDrawPoint
|
||||||
|
#define XMesaDrawPoints XDrawPoints
|
||||||
|
#define XMesaFillRectangle XFillRectangle
|
||||||
|
#define XMesaPutImage XPutImage
|
||||||
|
#define XMesaCopyArea XCopyArea
|
||||||
|
|
||||||
|
#define XMesaCreatePixmap XCreatePixmap
|
||||||
|
#define XMesaFreePixmap XFreePixmap
|
||||||
|
#define XMesaFreeGC XFreeGC
|
||||||
|
|
||||||
|
#define GET_COLORMAP_SIZE(__v) __v->visinfo->colormap_size
|
||||||
|
#define GET_REDMASK(__v) __v->mesa_visual.redMask
|
||||||
|
#define GET_GREENMASK(__v) __v->mesa_visual.greenMask
|
||||||
|
#define GET_BLUEMASK(__v) __v->mesa_visual.blueMask
|
||||||
|
#define GET_VISUAL_DEPTH(__v) __v->visinfo->depth
|
||||||
|
#define GET_BLACK_PIXEL(__v) BlackPixel(__v->display, __v->mesa_visual.screen)
|
||||||
|
#define CHECK_BYTE_ORDER(__v) host_byte_order()==ImageByteOrder(__v->display)
|
||||||
|
#define CHECK_FOR_HPCR(__v) XInternAtom(__v->display, "_HP_RGB_SMOOTH_MAP_LIST", True)
|
||||||
|
|
||||||
|
#endif
|
153
reactos/lib/mesa32/include/GL/xmesa_xf86.h
Normal file
153
reactos/lib/mesa32/include/GL/xmesa_xf86.h
Normal file
|
@ -0,0 +1,153 @@
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
|
||||||
|
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
|
||||||
|
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, sub license, 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 and this permission notice (including the
|
||||||
|
next paragraph) 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 NON-INFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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.
|
||||||
|
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Authors:
|
||||||
|
* Kevin E. Martin <kevin@precisioninsight.com>
|
||||||
|
*
|
||||||
|
* When we're building the XMesa driver for use in the X server (as the
|
||||||
|
* indirect render) we include this file when building the xm_*.c files.
|
||||||
|
* We need to define some types and macros differently when building
|
||||||
|
* in the Xserver vs. stand-alone Mesa.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _XMESA_XF86_H_
|
||||||
|
#define _XMESA_XF86_H_
|
||||||
|
|
||||||
|
#include "scrnintstr.h"
|
||||||
|
#include "pixmapstr.h"
|
||||||
|
|
||||||
|
typedef struct _XMesaImageRec XMesaImage;
|
||||||
|
|
||||||
|
typedef ScreenRec XMesaDisplay;
|
||||||
|
typedef PixmapPtr XMesaPixmap;
|
||||||
|
typedef ColormapPtr XMesaColormap;
|
||||||
|
typedef DrawablePtr XMesaDrawable;
|
||||||
|
typedef WindowPtr XMesaWindow;
|
||||||
|
typedef GCPtr XMesaGC;
|
||||||
|
typedef VisualPtr XMesaVisualInfo;
|
||||||
|
typedef DDXPointRec XMesaPoint;
|
||||||
|
typedef xColorItem XMesaColor;
|
||||||
|
|
||||||
|
#define XMesaSetGeneric(__d,__gc,__val,__mask) \
|
||||||
|
do { \
|
||||||
|
CARD32 __v[1]; \
|
||||||
|
(void) __d; \
|
||||||
|
__v[0] = __val; \
|
||||||
|
dixChangeGC(NullClient, __gc, __mask, __v, NULL); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaSetGenericPtr(__d,__gc,__pval,__mask) \
|
||||||
|
do { \
|
||||||
|
ChangeGCVal __v[1]; \
|
||||||
|
(void) __d; \
|
||||||
|
__v[0].ptr = __pval; \
|
||||||
|
dixChangeGC(NullClient, __gc, __mask, NULL, __v); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaSetForeground(d,gc,v) XMesaSetGeneric(d,gc,v,GCForeground)
|
||||||
|
#define XMesaSetBackground(d,gc,v) XMesaSetGeneric(d,gc,v,GCBackground)
|
||||||
|
#define XMesaSetPlaneMask(d,gc,v) XMesaSetGeneric(d,gc,v,GCPlaneMask)
|
||||||
|
#define XMesaSetFunction(d,gc,v) XMesaSetGeneric(d,gc,v,GCFunction)
|
||||||
|
#define XMesaSetFillStyle(d,gc,v) XMesaSetGeneric(d,gc,v,GCFillStyle)
|
||||||
|
|
||||||
|
#define XMesaSetTile(d,gc,v) XMesaSetGenericPtr(d,gc,v,GCTile)
|
||||||
|
|
||||||
|
#define XMesaDrawPoint(__d,__b,__gc,__x,__y) \
|
||||||
|
do { \
|
||||||
|
XMesaPoint __p[1]; \
|
||||||
|
(void) __d; \
|
||||||
|
__p[0].x = __x; \
|
||||||
|
__p[0].y = __y; \
|
||||||
|
ValidateGC(__b, __gc); \
|
||||||
|
(*gc->ops->PolyPoint)(__b, __gc, CoordModeOrigin, 1, __p); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaDrawPoints(__d,__b,__gc,__p,__n,__m) \
|
||||||
|
do { \
|
||||||
|
(void) __d; \
|
||||||
|
ValidateGC(__b, __gc); \
|
||||||
|
(*gc->ops->PolyPoint)(__b, __gc, __m, __n, __p); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaFillRectangle(__d,__b,__gc,__x,__y,__w,__h) \
|
||||||
|
do { \
|
||||||
|
xRectangle __r[1]; \
|
||||||
|
(void) __d; \
|
||||||
|
ValidateGC((DrawablePtr)__b, __gc); \
|
||||||
|
__r[0].x = __x; \
|
||||||
|
__r[0].y = __y; \
|
||||||
|
__r[0].width = __w; \
|
||||||
|
__r[0].height = __h; \
|
||||||
|
(*__gc->ops->PolyFillRect)((DrawablePtr)__b, __gc, 1, __r); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaPutImage(__d,__b,__gc,__i,__sx,__sy,__x,__y,__w,__h) \
|
||||||
|
do { \
|
||||||
|
/* Assumes: Images are always in ZPixmap format */ \
|
||||||
|
(void) __d; \
|
||||||
|
if (__sx || __sy) /* The non-trivial case */ \
|
||||||
|
XMesaPutImageHelper(__d,__b,__gc,__i,__sx,__sy,__x,__y,__w,__h); \
|
||||||
|
ValidateGC(__b, __gc); \
|
||||||
|
(*__gc->ops->PutImage)(__b, __gc, ((XMesaDrawable)(__b))->depth, \
|
||||||
|
__x, __y, __w, __h, 0, ZPixmap, \
|
||||||
|
((XMesaImage *)(__i))->data); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define XMesaCopyArea(__d,__sb,__db,__gc,__sx,__sy,__w,__h,__x,__y) \
|
||||||
|
do { \
|
||||||
|
(void) __d; \
|
||||||
|
ValidateGC(__db, __gc); \
|
||||||
|
(*__gc->ops->CopyArea)((DrawablePtr)__sb, __db, __gc, \
|
||||||
|
__sx, __sy, __w, __h, __x, __y); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
/* CreatePixmap returns a PixmapPtr; so, it cannot be inside braces */
|
||||||
|
#define XMesaCreatePixmap(__d,__b,__w,__h,__depth) \
|
||||||
|
(*__d->CreatePixmap)(__d, __w, __h, __depth)
|
||||||
|
|
||||||
|
#define XMesaFreePixmap(__d,__b) \
|
||||||
|
(*__d->DestroyPixmap)(__b)
|
||||||
|
|
||||||
|
#define XMesaFreeGC(__d,__gc) \
|
||||||
|
do { \
|
||||||
|
(void) __d; \
|
||||||
|
FreeScratchGC(__gc); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define GET_COLORMAP_SIZE(__v) __v->ColormapEntries
|
||||||
|
#define GET_REDMASK(__v) __v->mesa_visual.redMask
|
||||||
|
#define GET_GREENMASK(__v) __v->mesa_visual.greenMask
|
||||||
|
#define GET_BLUEMASK(__v) __v->mesa_visual.blueMask
|
||||||
|
#define GET_VISUAL_DEPTH(__v) __v->nplanes
|
||||||
|
#define GET_BLACK_PIXEL(__v) __v->display->blackPixel
|
||||||
|
#define CHECK_BYTE_ORDER(__v) GL_TRUE
|
||||||
|
#define CHECK_FOR_HPCR(__v) GL_FALSE
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue