| 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
|
|---|
| 43 | extern "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 |
|
|---|
| 63 | typedef struct tfxMesaContext *fxMesaContext;
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | #if defined (__BEOS__)
|
|---|
| 67 | #pragma export on
|
|---|
| 68 | #endif
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
|
|---|
| 72 | GrScreenRefresh_t,
|
|---|
| 73 | const GLint attribList[]);
|
|---|
| 74 |
|
|---|
| 75 | GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
|
|---|
| 76 | GLint width, GLint height,
|
|---|
| 77 | const GLint attribList[]);
|
|---|
| 78 | GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
|
|---|
| 79 |
|
|---|
| 80 | GLAPI GLboolean GLAPIENTRY fxMesaSelectCurrentBoard(int n);
|
|---|
| 81 |
|
|---|
| 82 | GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
|
|---|
| 83 |
|
|---|
| 84 | GLAPI fxMesaContext GLAPIENTRY fxMesaGetCurrentContext(void);
|
|---|
| 85 |
|
|---|
| 86 | GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
|
|---|
| 87 |
|
|---|
| 88 | GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
|
|---|
| 89 |
|
|---|
| 90 | GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
|
|---|
| 91 |
|
|---|
| 92 | GLAPI int GLAPIENTRY fxQueryHardware(void);
|
|---|
| 93 |
|
|---|
| 94 | GLAPI 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
|
|---|