KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gr_opengl_headers.h
Go to the documentation of this file.
1 /* $Id: gr_opengl_headers.h 18652 2015-03-16 16:27:26Z ksimek $ */
2 /* {{{=========================================================================== *
3  |
4  | Copyright (c) 1994-2014 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== }}}*/
19 
20 // vim: tabstop=4 shiftwidth=4 foldmethod=marker
21 #ifndef GR_CPP_GR_OPENGL_HEADERS_H
22 #define GR_CPP_GR_OPENGL_HEADERS_H
23 
28 #if !defined(__gl_h_) && !defined(__GL_H__)
29  #ifdef KJB_HAVE_GLEW
30  #include <GL/glew.h>
31  #endif
32 #endif
33 
34 #ifdef KJB_HAVE_OSMESA
35  #include <GL/osmesa.h>
36  #include <GL/glu.h>
37  #include <GL/glut.h>
38 #else
39 
40 #ifdef KJB_HAVE_OPENGL
41  #ifdef MAC_OSX
42  #include <OpenGL/glu.h>
43  #include <OpenGL/gl.h>
44  #ifdef KJB_HAVE_GLUT
45  #include <GLUT/glut.h>
46  #endif
47  #else
48  #ifdef WIN32
49  #include <GL/gl.h>
50  #include <GL/glu.h>
51  #ifdef KJB_HAVE_GLUT
52  #include <glut.h>
53  #endif
54  #else
55  #include <GL/gl.h>
56  #include <GL/glu.h>
57  #ifdef KJB_HAVE_GLUT
58  #include <GL/glut.h>
59  #endif
60  #endif
61  #endif
62 #else /* !defined(KJB_HAVE_OPENGL) */
63 typedef int GLUquadricObj;
64 typedef int GLuint;
65 typedef int GLenum;
66 static const GLenum GL_RED = -1;
67 static const GLenum GL_DEPTH_COMPONENT = -1;
68 #endif
69 #endif
70 
71 #endif /*GR_CPP_GR_OPENGL_HEADERS_H */
int GLenum
Definition: gr_opengl_headers.h:65
int GLuint
Definition: gr_opengl_headers.h:64
int GLUquadricObj
Definition: gr_opengl_headers.h:63