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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /* $Id: fxmesa.h,v 1.1 1999/08/19 00:55:40 jtg Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.1
  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. * $Log: fxmesa.h,v $
  23. * Revision 1.1 1999/08/19 00:55:40 jtg
  24. * Initial revision
  25. *
  26. * Revision 3.2 1999/01/03 02:46:31 brianp
  27. * now using GLAPI and GLAPIENTRY keywords (Ted Jump)
  28. *
  29. * Revision 3.1 1998/04/01 03:00:28 brianp
  30. * updated for v0.24 of 3Dfx/Glide driver
  31. *
  32. * Revision 3.0 1998/02/20 05:04:45 brianp
  33. * initial rev
  34. *
  35. */
  36. /*
  37. * FXMesa - 3Dfx Glide driver for Mesa. Contributed by David Bucciarelli
  38. *
  39. * NOTE: This version requires Glide 2.3 or later.
  40. */
  41. #ifndef FXMESA_H
  42. #define FXMESA_H
  43. #include <glide.h>
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. #define FXMESA_MAJOR_VERSION 3
  48. #define FXMESA_MINOR_VERSION 0
  49. /*
  50. * Values for attribList parameter to fxMesaCreateContext():
  51. */
  52. #define FXMESA_NONE 0 /* to terminate attribList */
  53. #define FXMESA_DOUBLEBUFFER 10
  54. #define FXMESA_ALPHA_SIZE 11 /* followed by an integer */
  55. #define FXMESA_DEPTH_SIZE 12 /* followed by an integer */
  56. #define FXMESA_STENCIL_SIZE 13 /* followed by an integer */
  57. #define FXMESA_ACCUM_SIZE 14 /* followed by an integer */
  58. typedef struct tfxMesaContext *fxMesaContext;
  59. #if defined (__BEOS__)
  60. #pragma export on
  61. #endif
  62. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateContext(GLuint win, GrScreenResolution_t,
  63. GrScreenRefresh_t,
  64. const GLint attribList[]);
  65. GLAPI fxMesaContext GLAPIENTRY fxMesaCreateBestContext(GLuint win,
  66. GLint width, GLint height,
  67. const GLint attribList[]);
  68. GLAPI void GLAPIENTRY fxMesaDestroyContext(fxMesaContext ctx);
  69. GLAPI GLboolean GLAPIENTRY fxMesaSelectCurrentBoard(int n);
  70. GLAPI void GLAPIENTRY fxMesaMakeCurrent(fxMesaContext ctx);
  71. GLAPI fxMesaContext GLAPIENTRY fxMesaGetCurrentContext(void);
  72. GLAPI void GLAPIENTRY fxMesaSwapBuffers(void);
  73. GLAPI void GLAPIENTRY fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
  74. GLAPI void GLAPIENTRY fxMesaUpdateScreenSize(fxMesaContext ctx);
  75. GLAPI int GLAPIENTRY fxQueryHardware(void);
  76. GLAPI void GLAPIENTRY fxCloseHardware(void);
  77. #if defined (__BEOS__)
  78. #pragma export off
  79. #endif
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif