[mapserver-commits] r8795 - sandbox/graphics

svn at osgeo.org svn at osgeo.org
Sat Mar 14 05:09:55 EDT 2009


Author: tbonfort
Date: 2009-03-14 05:09:55 -0400 (Sat, 14 Mar 2009)
New Revision: 8795

Modified:
   sandbox/graphics/mapserver.h
Log:
fixups after formatting


Modified: sandbox/graphics/mapserver.h
===================================================================
--- sandbox/graphics/mapserver.h	2009-03-14 09:05:44 UTC (rev 8794)
+++ sandbox/graphics/mapserver.h	2009-03-14 09:09:55 UTC (rev 8795)
@@ -299,6 +299,7 @@
 #define MS_DRIVER_SVG(format) (strncasecmp((format)->driver,"svg",3)==0)
 #define MS_DRIVER_AGG(format) (strncasecmp((format)->driver,"agg/",3)==0)
 #define MS_DRIVER_CAIRO(format) (strncasecmp((format)->driver,"cairo/",6)==0)
+#define MS_DRIVER_OGL(format) (strncasecmp((format)->driver,"ogl/",4)==0)
 #define MS_DRIVER_TEMPLATE(format) (strncasecmp((format)->driver,"template",8)==0)
 
 #define MS_RENDER_WITH_GD       1
@@ -309,7 +310,8 @@
 #define MS_RENDER_WITH_SVG      6
 #define MS_RENDER_WITH_AGG      7
 #define MS_RENDER_WITH_TEMPLATE 8 /* query results only */
-#define MS_RENDER_WITH_CAIRO      9
+#define MS_RENDER_WITH_CAIRO    9
+#define MS_RENDER_WITH_OGL      10
 
 #define MS_RENDERER_GD(format)  ((format)->renderer == MS_RENDER_WITH_GD)
 #define MS_RENDERER_SWF(format) ((format)->renderer == MS_RENDER_WITH_SWF)
@@ -318,7 +320,7 @@
 #define MS_RENDERER_IMAGEMAP(format) ((format)->renderer == MS_RENDER_WITH_IMAGEMAP)
 #define MS_RENDERER_SVG(format) ((format)->renderer == MS_RENDER_WITH_SVG)
 #define MS_RENDERER_AGG(format) ((format)->renderer == MS_RENDER_WITH_AGG)
-#define MS_RENDERER_PLUGIN(format) ((format)->renderer == MS_RENDER_WITH_CAIRO)
+#define MS_RENDERER_PLUGIN(format) ((format)->renderer == MS_RENDER_WITH_CAIRO || (format)->renderer == MS_RENDER_WITH_OGL)
 #define MS_RENDERER_TEMPLATE(format) ((format)->renderer == MS_RENDER_WITH_TEMPLATE)
 
 #define MS_CELLSIZE(min,max,d) ((max - min)/(d-1)) /* where min/max are from an MapServer pixel center-to-pixel center extent */



More information about the mapserver-commits mailing list