Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fxmesa.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * Mesa 3-D graphics library
  3. * Version: 4.0
  4. * Copyright (C) 1995-2001 Brian Paul
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the Free
  18. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. /*
  21. * FXMesa - 3Dfx Glide driver for Mesa. Contributed by David Bucciarelli
  22. *
  23. * NOTE: This version requires Glide 2.3 or later.
  24. */
  25. #ifndef FXMESA_H
  26. #define FXMESA_H
  27. #include <glide.h>
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #define FXMESA_MAJOR_VERSION 4
  32. #define FXMESA_MINOR_VERSION 0
  33. /*
  34. * Values for attribList parameter to fxMesaCreateContext():
  35. */
  36. #define FXMESA_NONE 0 /* to terminate attribList */
  37. #define FXMESA_DOUBLEBUFFER 10
  38. #define FXMESA_ALPHA_SIZE 11 /* followed by an integer */
  39. #define FXMESA_DEPTH_SIZE 12 /* followed by an integer */
  40. #define FXMESA_STENCIL_SIZE 13 /* followed by an integer */
  41. #define FXMESA_ACCUM_SIZE 14 /* followed by an integer */
  42. #define FXMESA_COLORDEPTH 20 /* followed by an integer */
  43. typedef struct tfxMesaContext *fxMesaContext;
  44. #if defined (__BEOS__)
  45. #pragma export on
  46. #endif
  47. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
  48. GrScreenRefresh_t,
  49. const GLint attribList[]);
  50. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
  51. GLint width, GLint height,
  52. const GLint attribList[]);
  53. GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
  54. GLAPI GLboolean GLAPIENTRY fxMesaSelectCurrentBoard(int n);
  55. GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
  56. GLAPI void * GLAPIENTRY fxMesaGetCurrentContext(void);
  57. GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
  58. GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
  59. GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
  60. GLAPI int GLAPIENTRY fxQueryHardware(void);
  61. GLAPI void GLAPIENTRY fxCloseHardware(void);
  62. GLAPI void GLAPIENTRY fxGetScreenGeometry (GLint *w, GLint *h);
  63. #if defined (__BEOS__)
  64. #pragma export off
  65. #endif
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif