]> git.mxchange.org Git - flightgear.git/blobdiff - tests/test-env-map.cxx
latest changes for JSBSim (1.0 prerelease)
[flightgear.git] / tests / test-env-map.cxx
index 209971e3c37ac5c0ae91e2a8821bf20f0752fccb..c3377bb3369e2c8fa7791d8ff6000d5d49e266f1 100644 (file)
@@ -1,11 +1,28 @@
-#include <GL/glut.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
 
+#include <simgear/compiler.h>
+#if defined( __APPLE__)
+# include <OpenGL/OpenGL.h>
+# include <GLUT/glut.h>
+#else
+# include <GL/gl.h>
+# include <GL/glut.h>
+#endif
+
 #define TEXRES_X 256
 #define TEXRES_Y 256
 
+
 unsigned char env_map[TEXRES_X][TEXRES_Y][4];
 GLuint texName;
 int window_x = 640, window_y = 480;