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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* $Id: fxmesa.h,v 1.2 1999/11/24 18:44:53 brianp Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.3
  5. * Copyright (C) 1995-1999 Brian Paul
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this library; if not, write to the Free
  19. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /*
  22. * FXMesa - 3Dfx Glide driver for Mesa. Contributed by David Bucciarelli
  23. *
  24. * NOTE: This version requires Glide 2.3 or later.
  25. */
  26. #ifndef FXMESA_H
  27. #define FXMESA_H
  28. #include <glide.h>
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. #define FXMESA_MAJOR_VERSION 3
  33. #define FXMESA_MINOR_VERSION 3
  34. /*
  35. * Values for attribList parameter to fxMesaCreateContext():
  36. */
  37. #define FXMESA_NONE 0 /* to terminate attribList */
  38. #define FXMESA_DOUBLEBUFFER 10
  39. #define FXMESA_ALPHA_SIZE 11 /* followed by an integer */
  40. #define FXMESA_DEPTH_SIZE 12 /* followed by an integer */
  41. #define FXMESA_STENCIL_SIZE 13 /* followed by an integer */
  42. #define FXMESA_ACCUM_SIZE 14 /* 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 fxMesaContext 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. #if defined (__BEOS__)
  63. #pragma export off
  64. #endif
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif