misc/winutils/include/SDL_opengl.h
changeset 10017 de822cd3df3a
parent 7809 7d4fb2f35f4f
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    27 #include "SDL_config.h"
    27 #include "SDL_config.h"
    28 
    28 
    29 #ifdef __WIN32__
    29 #ifdef __WIN32__
    30 #define WIN32_LEAN_AND_MEAN
    30 #define WIN32_LEAN_AND_MEAN
    31 #ifndef NOMINMAX
    31 #ifndef NOMINMAX
    32 #define NOMINMAX	/* Don't defined min() and max() */
    32 #define NOMINMAX    /* Don't defined min() and max() */
    33 #endif
    33 #endif
    34 #include <windows.h>
    34 #include <windows.h>
    35 #endif
    35 #endif
    36 #ifndef NO_SDL_GLEXT
    36 #ifndef NO_SDL_GLEXT
    37 #define __glext_h_  /* Don't let gl.h include glext.h */
    37 #define __glext_h_  /* Don't let gl.h include glext.h */
    38 #endif
    38 #endif
    39 #if defined(__MACOSX__)
    39 #if defined(__MACOSX__)
    40 #include <OpenGL/gl.h>	/* Header File For The OpenGL Library */
    40 #include <OpenGL/gl.h>  /* Header File For The OpenGL Library */
    41 #include <OpenGL/glu.h>	/* Header File For The GLU Library */
    41 #include <OpenGL/glu.h> /* Header File For The GLU Library */
    42 #elif defined(__MACOS__)
    42 #elif defined(__MACOS__)
    43 #include <gl.h>		/* Header File For The OpenGL Library */
    43 #include <gl.h>     /* Header File For The OpenGL Library */
    44 #include <glu.h>	/* Header File For The GLU Library */
    44 #include <glu.h>    /* Header File For The GLU Library */
    45 #else
    45 #else
    46 #include <GL/gl.h>	/* Header File For The OpenGL Library */
    46 #include <GL/gl.h>  /* Header File For The OpenGL Library */
    47 #include <GL/glu.h>	/* Header File For The GLU Library */
    47 #include <GL/glu.h> /* Header File For The GLU Library */
    48 #endif
    48 #endif
    49 #ifndef NO_SDL_GLEXT
    49 #ifndef NO_SDL_GLEXT
    50 #undef __glext_h_
    50 #undef __glext_h_
    51 #endif
    51 #endif
    52 
    52 
    70 ** Software License B, Version 1.1 (the "License"), the contents of this
    70 ** Software License B, Version 1.1 (the "License"), the contents of this
    71 ** file are subject only to the provisions of the License. You may not use
    71 ** file are subject only to the provisions of the License. You may not use
    72 ** this file except in compliance with the License. You may obtain a copy
    72 ** this file except in compliance with the License. You may obtain a copy
    73 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    73 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    74 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    74 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    75 ** 
    75 **
    76 ** http://oss.sgi.com/projects/FreeB
    76 ** http://oss.sgi.com/projects/FreeB
    77 ** 
    77 **
    78 ** Note that, as provided in the License, the Software is distributed on an
    78 ** Note that, as provided in the License, the Software is distributed on an
    79 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    79 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    80 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    80 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    81 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    81 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    82 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    82 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    83 ** 
    83 **
    84 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    84 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    85 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    85 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    86 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
    86 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
    87 ** Copyright in any portions created by third parties is as indicated
    87 ** Copyright in any portions created by third parties is as indicated
    88 ** elsewhere herein. All Rights Reserved.
    88 ** elsewhere herein. All Rights Reserved.
    89 ** 
    89 **
    90 ** Additional Notice Provisions: This software was created using the
    90 ** Additional Notice Provisions: This software was created using the
    91 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    91 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    92 ** not been independently verified as being compliant with the OpenGL(R)
    92 ** not been independently verified as being compliant with the OpenGL(R)
    93 ** version 1.2.1 Specification.
    93 ** version 1.2.1 Specification.
    94 */
    94 */
  3101 /*************************************************************/
  3101 /*************************************************************/
  3102 
  3102 
  3103 #include <stddef.h>
  3103 #include <stddef.h>
  3104 #ifndef GL_VERSION_2_0
  3104 #ifndef GL_VERSION_2_0
  3105 /* GL type for program/shader text */
  3105 /* GL type for program/shader text */
  3106 typedef char GLchar;			/* native character */
  3106 typedef char GLchar;            /* native character */
  3107 #endif
  3107 #endif
  3108 
  3108 
  3109 #ifndef GL_VERSION_1_5
  3109 #ifndef GL_VERSION_1_5
  3110 /* GL types for handling large vertex buffer objects */
  3110 /* GL types for handling large vertex buffer objects */
  3111 #ifdef __APPLE__
  3111 #ifdef __APPLE__
  3128 #endif
  3128 #endif
  3129 #endif
  3129 #endif
  3130 
  3130 
  3131 #ifndef GL_ARB_shader_objects
  3131 #ifndef GL_ARB_shader_objects
  3132 /* GL types for handling shader object handles and program/shader text */
  3132 /* GL types for handling shader object handles and program/shader text */
  3133 typedef char GLcharARB;		/* native character */
  3133 typedef char GLcharARB;     /* native character */
  3134 #if defined(__APPLE__)
  3134 #if defined(__APPLE__)
  3135 typedef void *GLhandleARB;	/* shader object handle */
  3135 typedef void *GLhandleARB;  /* shader object handle */
  3136 #else
  3136 #else
  3137 typedef unsigned int GLhandleARB;	/* shader object handle */
  3137 typedef unsigned int GLhandleARB;   /* shader object handle */
  3138 #endif
  3138 #endif
  3139 #endif
  3139 #endif
  3140 
  3140 
  3141 /* GL types for "half" precision (s10e5) float data in host memory */
  3141 /* GL types for "half" precision (s10e5) float data in host memory */
  3142 #ifndef GL_ARB_half_float_pixel
  3142 #ifndef GL_ARB_half_float_pixel