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.
This commit is contained in:
curt
2004-11-18 19:10:34 +00:00
parent ff10602c65
commit 8d73160a75
23 changed files with 99 additions and 31 deletions

View File

@@ -364,6 +364,23 @@
#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.
//

View File

@@ -33,12 +33,12 @@
# 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

View File

@@ -33,9 +33,12 @@
# 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"

View File

@@ -36,7 +36,9 @@
#include <map>
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "SkyUtil.hpp"
#include "SkySingleton.hpp"

View File

@@ -28,7 +28,9 @@
# include <windows.h>
#endif
#include <GL/glu.h>
#include <simgear/compiler.h>
#include SG_GLU_H
#include "glut_shapes.h"

View File

@@ -33,7 +33,9 @@
# include <windows.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "vec4f.hpp"
#include "SkyUtil.hpp"

View File

@@ -29,7 +29,9 @@
# include <windows.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "SkyMinMaxBox.hpp"
#include "camutils.hpp"

View File

@@ -28,7 +28,9 @@
# include <windows.h>
#endif
#include <GL/glu.h>
#include <simgear/compiler.h>
#include SG_GLU_H
#include "SkyUtil.hpp"
#include "SkyCloud.hpp"

View File

@@ -30,7 +30,9 @@
# include <windows.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "SkyRenderableInstanceGroup.hpp"
#include "SkySceneManager.hpp"

View File

@@ -33,7 +33,9 @@
# include <windows.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#define __glext_h_
#define __GLEXT_H_

View File

@@ -30,7 +30,9 @@
# include <windows.h>
#endif
#include <GL/glu.h>
#include <simgear/compiler.h>
#include SG_GLU_H
#include "SkyTextureManager.hpp"
#include "SkyContext.hpp"

View File

@@ -48,10 +48,13 @@ OpenGL(TM) is a trademark of Silicon Graphics, Inc.
# 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... */

View File

@@ -14,7 +14,9 @@
# include <windows.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#ifdef __cplusplus
extern "C" {

View File

@@ -33,7 +33,9 @@
#include <math.h>
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include <plib/sg.h>

View File

@@ -15,7 +15,9 @@
#include <limits.h>
#include <string.h> // memcpy()
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "GLBitmaps.h"

View File

@@ -36,7 +36,9 @@
# include <dlfcn.h>
#endif
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#if defined(__cplusplus)

View File

@@ -36,7 +36,9 @@
#include <stdlib.h>
#include <limits.h>
#include <GL/gl.h>
#include <simgear/compiler.h>
#include SG_GL_H
#include "screen-dump.hxx"

View File

@@ -22,8 +22,9 @@
//
// $Id$
#include <simgear/compiler.h>
#include <GL/gl.h>
#include SG_GL_H
/**
* Dump the screen buffer to a ppm file.

View File

@@ -12,10 +12,13 @@
*/
#include <simgear/compiler.h>
#ifdef WIN32
# include <windows.h>
#endif
#include <GL/glu.h>
#include SG_GLU_H
#include <zlib.h>
#include "texture.hxx"

View File

@@ -13,7 +13,8 @@
#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>

View File

@@ -2,8 +2,13 @@
/*
* $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.
@@ -62,8 +67,9 @@
#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"

View File

@@ -2,8 +2,13 @@
/*
* $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
@@ -75,8 +80,9 @@
#ifndef TR_H
#define TR_H
#include <simgear/compiler.h>
#include <GL/gl.h>
#include SG_GL_H
//#ifdef __cplusplus

View File

@@ -14,8 +14,10 @@
# 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>