include/SDL_opengl.h
changeset 1895 c121d94672cb
parent 1619 e79e4c5e531b
child 1978 542c78b6fb12
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
    25 #include "SDL_config.h"
    25 #include "SDL_config.h"
    26 
    26 
    27 #ifdef __WIN32__
    27 #ifdef __WIN32__
    28 #define WIN32_LEAN_AND_MEAN
    28 #define WIN32_LEAN_AND_MEAN
    29 #ifndef NOMINMAX
    29 #ifndef NOMINMAX
    30 #define NOMINMAX	/* Don't defined min() and max() */
    30 #define NOMINMAX                /* Don't defined min() and max() */
    31 #endif
    31 #endif
    32 #include <windows.h>
    32 #include <windows.h>
    33 #endif
    33 #endif
    34 #ifndef NO_SDL_GLEXT
    34 #ifndef NO_SDL_GLEXT
    35 #define __glext_h_  /* Don't let gl.h include glext.h */
    35 #define __glext_h_              /* Don't let gl.h include glext.h */
    36 #endif
    36 #endif
    37 #if defined(__MACOSX__)
    37 #if defined(__MACOSX__)
    38 #include <OpenGL/gl.h>	/* Header File For The OpenGL Library */
    38 #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
    39 #include <OpenGL/glu.h>	/* Header File For The GLU Library */
    39 #include <OpenGL/glu.h>         /* Header File For The GLU Library */
    40 #elif defined(__MACOS__)
    40 #elif defined(__MACOS__)
    41 #include <gl.h>		/* Header File For The OpenGL Library */
    41 #include <gl.h>                 /* Header File For The OpenGL Library */
    42 #include <glu.h>	/* Header File For The GLU Library */
    42 #include <glu.h>                /* Header File For The GLU Library */
    43 #else
    43 #else
    44 #include <GL/gl.h>	/* Header File For The OpenGL Library */
    44 #include <GL/gl.h>              /* Header File For The OpenGL Library */
    45 #include <GL/glu.h>	/* Header File For The GLU Library */
    45 #include <GL/glu.h>             /* Header File For The GLU Library */
    46 #endif
    46 #endif
    47 #ifndef NO_SDL_GLEXT
    47 #ifndef NO_SDL_GLEXT
    48 #undef __glext_h_
    48 #undef __glext_h_
    49 #endif
    49 #endif
    50 
    50 
    51 /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
    51 /* This file is included because glext.h is not available on some systems.
    52    It is included here because glext.h is not available on some systems.
       
    53    If you don't want this version included, simply define "NO_SDL_GLEXT"
    52    If you don't want this version included, simply define "NO_SDL_GLEXT"
       
    53    The latest version is available from:
       
    54 	http://oss.sgi.com/projects/ogl-sample/registry/
    54  */
    55  */
    55 #ifndef NO_SDL_GLEXT
    56 #if !defined(NO_SDL_GLEXT) && !defined(GL_GLEXT_LEGACY)
    56 #if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY)
    57 /* *INDENT-OFF* */
       
    58 #ifndef __glext_h_
    57 #define __glext_h_
    59 #define __glext_h_
    58 
    60 
    59 #ifdef __cplusplus
    61 #ifdef __cplusplus
    60 extern "C" {
    62 extern "C" {
    61 #endif
    63 #endif
  6546 #ifdef __cplusplus
  6548 #ifdef __cplusplus
  6547 }
  6549 }
  6548 #endif
  6550 #endif
  6549 
  6551 
  6550 #endif
  6552 #endif
       
  6553 /* *INDENT-ON* */
  6551 #endif /* NO_SDL_GLEXT */
  6554 #endif /* NO_SDL_GLEXT */