[Gridflow-cvs] [svn] commit: r6000 - in /trunk: configure src/opengl.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 9 12:35:36 EDT 2010


Author: claude
Date: Mon Aug  9 12:35:35 2010
New Revision: 6000

Log:
use GLEW (extension wrangler) for OpenGL beyond the most basic interface

Modified:
    trunk/configure
    trunk/src/opengl.cxx

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Mon Aug  9 12:35:35 2010
@@ -582,10 +582,10 @@
 			int main () {return 0;}`}}
 Feature.add {
 	tag :opengl
-	name "OpenGL (for GEM support, etc)"
+	name "OpenGL/GLEW (for GEM support, etc)"
 	produces_o ["src/opengl.o"]
-        uses_so $LIBX11DIR+["-lGL"] if not WIN
-        uses_h ["GL/gl.h"]
+        uses_so $LIBX11DIR+["-lGLEW"] if not WIN
+        uses_h ["GL/glew.h"]
 	options ["HAVE_OPENGL"]
 	test proc {
 		c_test %`
@@ -601,8 +601,8 @@
 	uses_pdlib ["gridflow_gem9292$(PDSUF)",
 		    "gridflow_gem9293$(PDSUF)",
 		    "gridflow_gem9393$(PDSUF)"]
-        uses_so $LIBX11DIR+["-lGL"] if not WIN
-        uses_h ["GL/gl.h"]
+        uses_so $LIBX11DIR+["-lGLEW"] if not WIN
+        uses_h ["GL/glew.h"]
 	options ["HAVE_GEM"]
 	test proc {
 		c_test %`

Modified: trunk/src/opengl.cxx
==============================================================================
--- trunk/src/opengl.cxx (original)
+++ trunk/src/opengl.cxx Mon Aug  9 12:35:35 2010
@@ -20,7 +20,7 @@
 */
 
 #include "gridflow.hxx.fcs"
-#include <GL/gl.h>
+#include <GL/glew.h>
 #include <ctype.h>
 
 struct EnumType {



More information about the Gridflow-cvs mailing list