Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1899 - trunk/Engine/Display


Chronological Thread 
  • From: boulos@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1899 - trunk/Engine/Display
  • Date: Mon, 3 Dec 2007 17:15:56 -0700 (MST)

Author: boulos
Date: Mon Dec  3 17:15:54 2007
New Revision: 1899

Modified:
   trunk/Engine/Display/PureOpenGLDisplay.cc
   trunk/Engine/Display/PureOpenGLDisplay.h
Log:
Adding include of windows.h before gl.h under Win32 to fix GL include issues 
(what a terrible idea)

Not including glext.h on windows since it isn't available by default.

Adding #define to 0 for symbols that would normally be in glext.h but aren't 
on windows. This should be harmless as these modes won't get used.

Modified: trunk/Engine/Display/PureOpenGLDisplay.cc
==============================================================================
--- trunk/Engine/Display/PureOpenGLDisplay.cc   (original)
+++ trunk/Engine/Display/PureOpenGLDisplay.cc   Mon Dec  3 17:15:54 2007
@@ -38,9 +38,17 @@
 #include <Core/Exceptions/IllegalArgument.h>
 
 #if  !defined(__APPLE__) || MANTA_ENABLE_X11
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
 #include <GL/gl.h>
 #include <GL/glu.h>
+
+#ifndef _WIN32
 #include <GL/glext.h>
+#endif
+
 #else
 #include <OpenGL/gl.h>
 #include <OpenGL/glu.h>
@@ -195,6 +203,30 @@
 #    define GL_STORAGE_SHARED_APPLE 0
 #  endif
 #  define glTextureRangeAPPLE(x, y, z)
+#endif
+
+#ifndef GL_ABGR_EXT
+#define GL_ABGR_EXT 0
+#endif
+
+#ifndef GL_BGRA
+#define GL_BGRA 0
+#endif
+
+#ifndef GL_UNSIGNED_INT_8_8_8_8_REV
+#define GL_UNSIGNED_INT_8_8_8_8_REV 0
+#endif
+
+#ifndef GL_UNSIGNED_INT_8_8_8_8
+#define GL_UNSIGNED_INT_8_8_8_8 0
+#endif
+
+#ifndef GL_UNPACK_CLIENT_STORAGE_APPLE
+#define GL_UNPACK_CLIENT_STORAGE_APPLE 0
+#endif
+
+#ifndef GL_CLAMP_TO_EDGE
+#define GL_CLAMP_TO_EDGE 0
 #endif
 
 

Modified: trunk/Engine/Display/PureOpenGLDisplay.h
==============================================================================
--- trunk/Engine/Display/PureOpenGLDisplay.h    (original)
+++ trunk/Engine/Display/PureOpenGLDisplay.h    Mon Dec  3 17:15:54 2007
@@ -31,9 +31,12 @@
 
 #include <Core/Color/RGBColor.h>
 
-#ifdef __APPLE__
+#ifdef __APPLE__ 
 #include <OpenGL/gl.h>
 #else
+#ifdef _WIN32
+#include <windows.h>
+#endif
 #include <GL/gl.h>
 //#include <GL/glext.h>
 #endif




  • [Manta] r1899 - trunk/Engine/Display, boulos, 12/03/2007

Archive powered by MHonArc 2.6.16.

Top of page