added a buch of
authorStefan Gartner <stefang@aon.at>
Tue, 7 Jan 2003 00:18:59 +0000 (00:18 +0000)
committerStefan Gartner <stefang@aon.at>
Tue, 7 Jan 2003 00:18:59 +0000 (00:18 +0000)
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
(also for <GL/glu.h>)

so that people don't have to create symlinks in
/System/Library/Frameworks/OpenGL.framework on Mac OS X
(Charles Wardlaw)

source/blender/include/BIF_gl.h
source/gameengine/BlenderRoutines/KX_BlenderCanvas.h
source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp
source/gameengine/GamePlayer/common/GPC_PolygonMaterial.cpp
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_CheckVertexArrays.cpp
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp

index 291c465..98c6a93 100644 (file)
 #ifndef BIF_GL_H
 #define BIF_GL_H
 
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
 #include <GL/gl.h>
 #include <GL/glu.h>
-
+#endif
        /*
         * these should be phased out. cpack should be replaced in
         * code with calls to glColor3ub, lrectwrite probably should
index 5f8b754..23258f5 100644 (file)
 #ifdef WIN32
 #include <windows.h>
 #endif 
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
 #include <GL/gl.h>
+#endif
 
 #include "RAS_ICanvas.h"
 #include "RAS_Rect.h"
index d8399fd..92c2519 100644 (file)
@@ -74,8 +74,11 @@ extern "C" {
 
 /* end of blender block */
 
-
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
 #include <GL/gl.h>
+#endif
 
 
 void BL_warp_pointer(int x,int y)
index c9e8611..2049f2e 100644 (file)
 // OpenGL gl.h needs 'windows.h' on windows platforms 
 #include <windows.h>
 #endif //WIN32
-#include "GL/gl.h"
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
+#include <GL/gl.h>
+#endif
 
 #include "RAS_IRenderTools.h"
 #include "RAS_IRasterizer.h"
index 2741ba0..b43dfee 100644 (file)
 #ifdef WIN32
 #include <windows.h>
 #endif // WIN32
-#include "GL/gl.h"
-#include "GL/glu.h"
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif
 
 static Image *fCurpage=0;
 static int fCurtile=0, fCurmode=0, fCurTileXRep=0, fCurTileYRep=0;
index 12212cf..08db371 100644 (file)
 #include <windows.h>
 #endif 
 
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
 #include <GL/gl.h>
+#endif
 #include <iostream>
 
 #include "GPC_RenderTools.h"
index 0a62acb..f3c5b85 100644 (file)
 #ifdef WIN32
 #include <windows.h>
 #endif // WIN32
-#include "GL/gl.h"
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
+#include <GL/gl.h>
+#endif
 
 #include "STR_String.h"
 
index 959b8ec..b1c3e5b 100644 (file)
@@ -7,7 +7,11 @@
 #ifdef WIN32
 #include <windows.h>
 #endif // WIN32
-#include "GL/gl.h"
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#else
+#include <GL/gl.h>
+#endif
 
 #include "RAS_Rect.h"
 #include "RAS_TexVert.h"