Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

fxmesa.h 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 5
  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. #define FXMESA_SHARE_CONTEXT 990099 /* keep in sync with xmesa1.c! */
  44. typedef struct tfxMesaContext *fxMesaContext;
  45. #if defined (__BEOS__)
  46. #pragma export on
  47. #endif
  48. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
  49. GrScreenRefresh_t,
  50. const GLint attribList[]);
  51. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
  52. GLint width, GLint height,
  53. const GLint attribList[]);
  54. GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
  55. GLAPI GLboolean GLAPIENTRY fxMesaSelectCurrentBoard(int n);
  56. GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
  57. GLAPI void * GLAPIENTRY fxMesaGetCurrentContext(void);
  58. GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
  59. GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
  60. GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
  61. GLAPI GLboolean GLAPIENTRY fxQueryHardware(void);
  62. GLAPI void GLAPIENTRY fxCloseHardware(void);
  63. GLAPI void GLAPIENTRY fxGetScreenGeometry (GLint *w, GLint *h);
  64. #if defined (__BEOS__)
  65. #pragma export off
  66. #endif
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif