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:
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include SG_GL_H
|
||||
|
||||
#include "SkyUtil.hpp"
|
||||
#include "SkySingleton.hpp"
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <GL/glu.h>
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include SG_GLU_H
|
||||
|
||||
#include "glut_shapes.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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... */
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include SG_GL_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -33,7 +33,9 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include SG_GL_H
|
||||
|
||||
#include <plib/sg.h>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include SG_GL_H
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user