source: branches/swt/src/opengl/mesa/GL/fxmesa.h

Last change on this file was 2938, checked in by sandervl, 26 years ago

created

File size: 2.9 KB
Line 
1/* $Id: fxmesa.h,v 1.1 2000-02-29 00:43:31 sandervl Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28/*
29 * FXMesa - 3Dfx Glide driver for Mesa. Contributed by David Bucciarelli
30 *
31 * NOTE: This version requires Glide 2.3 or later.
32 */
33
34
35#ifndef FXMESA_H
36#define FXMESA_H
37
38
39#include <glide.h>
40
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46
47#define FXMESA_MAJOR_VERSION 3
48#define FXMESA_MINOR_VERSION 1
49
50
51/*
52 * Values for attribList parameter to fxMesaCreateContext():
53 */
54#define FXMESA_NONE 0 /* to terminate attribList */
55#define FXMESA_DOUBLEBUFFER 10
56#define FXMESA_ALPHA_SIZE 11 /* followed by an integer */
57#define FXMESA_DEPTH_SIZE 12 /* followed by an integer */
58#define FXMESA_STENCIL_SIZE 13 /* followed by an integer */
59#define FXMESA_ACCUM_SIZE 14 /* followed by an integer */
60
61
62
63typedef struct tfxMesaContext *fxMesaContext;
64
65
66#if defined (__BEOS__)
67#pragma export on
68#endif
69
70
71GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
72 GrScreenRefresh_t,
73 const GLint attribList[]);
74
75GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
76 GLint width, GLint height,
77 const GLint attribList[]);
78GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
79
80GLAPI GLboolean GLAPIENTRY fxMesaSelectCurrentBoard(int n);
81
82GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
83
84GLAPI fxMesaContext GLAPIENTRY fxMesaGetCurrentContext(void);
85
86GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
87
88GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
89
90GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
91
92GLAPI int GLAPIENTRY fxQueryHardware(void);
93
94GLAPI void GLAPIENTRY fxCloseHardware(void);
95
96
97#if defined (__BEOS__)
98#pragma export off
99#endif
100
101
102#ifdef __cplusplus
103}
104#endif
105
106
107#endif
Note: See TracBrowser for help on using the repository browser.