home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / src-glu / glup.h < prev    next >
C/C++ Source or Header  |  1996-05-27  |  2KB  |  87 lines

  1. /* gluP.h */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  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. $Id: gluP.h,v 1.5 1995/08/04 13:10:49 brianp Exp $
  26.  
  27. $Log: gluP.h,v $
  28.  * Revision 1.5  1995/08/04  13:10:49  brianp
  29.  * conditionally define NULL
  30.  * always definde GLU_NO_ERROR
  31.  *
  32.  * Revision 1.4  1995/07/28  21:36:26  brianp
  33.  * changed all GLUenum to GLenum
  34.  *
  35.  * Revision 1.3  1995/07/26  15:05:36  brianp
  36.  * added MEMCPY macro
  37.  *
  38.  * Revision 1.2  1995/05/22  16:56:20  brianp
  39.  * Release 1.2
  40.  *
  41.  * Revision 1.1  1995/05/16  19:18:02  brianp
  42.  * Initial revision
  43.  *
  44.  */
  45.  
  46.  
  47.  
  48. /*
  49.  * This file allows the GLU code to be compiled either with the Mesa
  50.  * headers or with the real OpenGL headers.
  51.  */
  52.  
  53.  
  54. #ifndef GLUP_H
  55. #define GLUP_H
  56.  
  57.  
  58. #include "GL/gl.h"
  59. #include "GL/glu.h"
  60.  
  61.  
  62. #ifndef MESA
  63.    /* If we're using the real OpenGL header files... */
  64. #  define GLU_TESS_ERROR9    100159
  65. #endif
  66.  
  67.  
  68. #define GLU_NO_ERROR        GL_NO_ERROR
  69.  
  70.  
  71. /* for Sun: */
  72. #ifdef SUNOS4
  73. #define MEMCPY( DST, SRC, BYTES) \
  74.     memcpy( (char *) (DST), (char *) (SRC), (int) (BYTES) )
  75. #else
  76. #define MEMCPY( DST, SRC, BYTES) \
  77.     memcpy( (void *) (DST), (void *) (SRC), (size_t) (BYTES) )
  78. #endif
  79.  
  80.  
  81. #ifndef NULL
  82. #  define NULL 0
  83. #endif
  84.  
  85.  
  86. #endif
  87.