#endif // __ICC
+//
+// Platform dependent gl.h and glut.h definitions
+//
+
+#ifdef __APPLE__
+# define SG_GL_H <OpenGL/gl.h>
+# define SG_GLU_H <OpenGL/glu.h>
+# define SG_GLUT_H <OpenGL/glut.h>
+# define SG_GLEXT_H <OpenGL/glext.h>
+#else
+# define SG_GL_H <GL/gl.h>
+# define SG_GLU_H <GL/glu.h>
+# define SG_GLUT_H <GL/glut.h>
+# define SG_GLEXT_H <GL/glext.h>
+#endif
+
+
//
// No user modifiable definitions beyond here.
//
# include <windows.h>
#endif
-#include <GL/gl.h>
-
#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/structure/exception.hxx>
+#include SG_GL_H
+
#include <string.h>
#include STL_STRING
# include <windows.h>
#endif
-#include <GL/glu.h>
#include <plib/ul.h>
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
+
#include "SkyCloud.hpp"
#include "SkyRenderableInstance.hpp"
#include "SkyContext.hpp"
#include <map>
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "SkyUtil.hpp"
#include "SkySingleton.hpp"
# include <windows.h>
#endif
-#include <GL/glu.h>
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
#include "glut_shapes.h"
# include <windows.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "vec4f.hpp"
#include "SkyUtil.hpp"
# include <windows.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "SkyMinMaxBox.hpp"
#include "camutils.hpp"
# include <windows.h>
#endif
-#include <GL/glu.h>
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
#include "SkyUtil.hpp"
#include "SkyCloud.hpp"
# include <windows.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "SkyRenderableInstanceGroup.hpp"
#include "SkySceneManager.hpp"
# include <windows.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#define __glext_h_
#define __GLEXT_H_
# include <windows.h>
#endif
-#include <GL/glu.h>
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
#include "SkyTextureManager.hpp"
#include "SkyContext.hpp"
# include <simgear_config.h>
#endif
-#include "glut_shapes.h"
-
#include <math.h>
-#include <GL/glu.h>
+
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
+
+#include "glut_shapes.h"
/* Some <math.h> files do not define M_PI... */
# include <windows.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#ifdef __cplusplus
extern "C" {
#include <math.h>
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include <plib/sg.h>
#include <limits.h>
#include <string.h> // memcpy()
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "GLBitmaps.h"
# include <dlfcn.h>
#endif
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#if defined(__cplusplus)
#include <stdlib.h>
#include <limits.h>
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+
+#include SG_GL_H
#include "screen-dump.hxx"
//
// $Id$
+#include <simgear/compiler.h>
-#include <GL/gl.h>
+#include SG_GL_H
/**
* Dump the screen buffer to a ppm file.
*/
#include <simgear/compiler.h>
+
#ifdef WIN32
# include <windows.h>
#endif
-#include <GL/glu.h>
+
+#include SG_GLU_H
+
#include <zlib.h>
#include "texture.hxx"
#ifndef __SG_TEXTURE_HXX
#define __SG_TEXTURE_HXX 1
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+#include SG_GL_H
#include <zlib.h>
#include <plib/sg.h>
/*
* $Log$
- * Revision 1.1 2002/09/07 02:58:19 curt
- * Initial revision
+ * Revision 1.2 2004/11/18 19:10:34 curt
+ * Abstract out location of gl.h, glut.h, and glu.h includes so that we can
+ * make the Mac platform happy since they put these in a different place compared
+ * to the rest of the world.
+ *
+ * Revision 1.1.1.1 2002/09/07 02:58:19 curt
+ * Initial revsion of Simgear-0.3.0
*
* Revision 1.3 2001/07/30 20:34:21 curt
* Various MSVC fixes.
#ifdef WIN32
#include <windows.h>
#endif
-#include <GL/gl.h>
-#include <GL/glu.h>
+
+#include SG_GLU_H
+
#include <plib/ssg.h>
#include "tr.h"
/*
* $Log$
- * Revision 1.1 2002/09/07 02:58:19 curt
- * Initial revision
+ * Revision 1.2 2004/11/18 19:10:34 curt
+ * Abstract out location of gl.h, glut.h, and glu.h includes so that we can
+ * make the Mac platform happy since they put these in a different place compared
+ * to the rest of the world.
+ *
+ * Revision 1.1.1.1 2002/09/07 02:58:19 curt
+ * Initial revsion of Simgear-0.3.0
*
* Revision 1.1 2001/06/26 15:19:39 curt
* Added tr.cxx / tr.h, Brian Paul's LGPL'd tiled rendering support libs for
#ifndef TR_H
#define TR_H
+#include <simgear/compiler.h>
-#include <GL/gl.h>
+#include SG_GL_H
//#ifdef __cplusplus
# include <windows.h>
#endif
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <simgear/compiler.h>
+#include SG_GLU_H
+#include SG_GL_H
+
#include <stdio.h>