Clone of mesa.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

fxmesa.h 2.9KB

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