home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / include / gl / fxmesa.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  3.5 KB  |  134 lines

  1. /* $Id: fxmesa.h,v 1.11 1997/09/29 23:22:16 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  2.5
  6.  * Copyright (C) 1995-1997  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: fxmesa.h,v $
  26.  * Revision 1.11  1997/09/29 23:22:16  brianp
  27.  * updated version to 2.5
  28.  *
  29.  * Revision 1.10  1997/09/18 23:09:49  brianp
  30.  * set minor version number to 4
  31.  *
  32.  * Revision 1.9  1997/08/24 17:37:22  brianp
  33.  * added fxMesaTextureUsePalette()
  34.  *
  35.  * Revision 1.8  1997/08/19 02:35:45  brianp
  36.  * added fxQueryHardware() and fxCloseHardware()
  37.  *
  38.  * Revision 1.7  1997/07/08 02:15:19  brianp
  39.  * removed USE_GLIDE_FULLSCREEN hack, no longer needed with Glide 2.3.1
  40.  *
  41.  * Revision 1.6  1997/06/26 14:28:42  brianp
  42.  * set USE_GLIDE_FULLSCREEN by testing for __WIN32__
  43.  *
  44.  * Revision 1.5  1997/06/20 03:34:56  brianp
  45.  * added attribList parameter to fxMesaCreateContext()
  46.  * added FXMESA_* symbols
  47.  *
  48.  * Revision 1.4  1997/06/18 02:31:05  brianp
  49.  * added comment about the USE_GLIDE_FULLSCREEN symbol
  50.  *
  51.  * Revision 1.3  1997/06/18 02:28:25  brianp
  52.  * many changes for Linux support and 3Dfx Rush support
  53.  *
  54.  * Revision 1.2  1997/05/28 03:50:17  brianp
  55.  * added FXMESA_MAJOR/MINOR_VERSION symbols
  56.  *
  57.  * Revision 1.1  1997/05/14 03:29:25  brianp
  58.  * Initial revision
  59.  *
  60.  */
  61.  
  62.  
  63. /*
  64.  * FXMesa - 3Dfx Glide driver for Mesa.  Contributed by David Bucciarelli
  65.  *
  66.  * NOTE: This version requires Glide 2.3 or later.
  67.  */
  68.  
  69.  
  70. #ifndef FXMESA_H
  71. #define FXMESA_H
  72.  
  73.  
  74. #include <glide.h>
  75.  
  76.  
  77. #ifdef __cplusplus
  78. extern "C" {
  79. #endif
  80.  
  81.  
  82. #define FXMESA_MAJOR_VERSION 2
  83. #define FXMESA_MINOR_VERSION 5
  84.  
  85.  
  86. /*
  87.  * Values for attribList parameter to fxMesaCreateContext():
  88.  */
  89. #define FXMESA_NONE        0    /* to terminate attribList */
  90. #define FXMESA_DOUBLEBUFFER    10
  91. #define FXMESA_ALPHA_SIZE    11      /* followed by an integer */
  92. #define FXMESA_DEPTH_SIZE    12      /* followed by an integer */
  93. #define FXMESA_STENCIL_SIZE    13      /* followed by an integer */
  94. #define FXMESA_ACCUM_SIZE    14      /* followed by an integer */
  95.  
  96.  
  97.  
  98. typedef struct fx_mesa_context *fxMesaContext;
  99.  
  100.  
  101. extern fxMesaContext fxMesaCreateContext(GLuint win, GrScreenResolution_t,
  102.                                          GrScreenRefresh_t,
  103.                                          const GLint attribList[]);
  104.  
  105. extern fxMesaContext fxMesaCreateBestContext(GLuint win,
  106.                                              GLint width, GLint height,
  107.                                              const GLint attribList[]);
  108.  
  109. extern void fxMesaDestroyContext(fxMesaContext ctx);
  110.  
  111. extern void fxMesaMakeCurrent(fxMesaContext ctx);
  112.  
  113. extern fxMesaContext fxMesaGetCurrentContext( void );
  114.  
  115. extern void fxMesaSwapBuffers(void);
  116.  
  117. extern void fxMesaSetNearFar(GLfloat nearVal, GLfloat farVal);
  118.  
  119.  
  120. extern int fxQueryHardware(void);
  121.  
  122. extern int fxCloseHardware(void);
  123.  
  124.  
  125. extern void fxMesaTextureUsePalette(GLboolean state);
  126.  
  127.  
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131.  
  132.  
  133. #endif
  134.