* Changelog:
*
* Jan. 2005, Removed GLEW dependencies, Erik Hofman
+ * Added MacOS X support
*/
#include <simgear/compiler.h>
-#ifndef _WIN32
-#include <X11/Xlib.h>
+#if !defined( _WIN32 ) && !defined( __APPLE__ )
+# include <X11/Xlib.h>
#endif
#include SG_GL_H
-#include SG_GLX_H
+#ifndef _WIN32
+# include SG_GLX_H
+#endif
+#ifdef __APPLE__
+# ifndef None
+# define None false
+# endif
+# ifndef True
+# define True true
+# endif
+#endif
#include <string>
#include <vector>
HDC _hPreviousDC;
HGLRC _hPreviousContext;
+#elif defined( __APPLE__ )
+
#else
Display *_pDisplay;
GLXContext _hGLContext;
// Texture stuff
GLenum _iTextureTarget;
- unsigned int _iTextureID;
- unsigned int _iDepthTextureID;
+ GLuint _iTextureID;
+ GLuint _iDepthTextureID;
unsigned short* _pPoorDepthTexture; // [Redge]