<p><b>dwj07@fsu.edu</b> 2012-11-06 10:45:59 -0700 (Tue, 06 Nov 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Adding auto-incrementation of screenshot output names.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/tools/mpas_draw/mpas_draw.cpp
===================================================================
--- branches/tools/mpas_draw/mpas_draw.cpp        2012-11-06 16:57:21 UTC (rev 2299)
+++ branches/tools/mpas_draw/mpas_draw.cpp        2012-11-06 17:45:59 UTC (rev 2300)
@@ -6,7 +6,9 @@
 #include <iomanip>
 #include <string>
 #include <vector>
-//#include <unistd.h>
+#ifdef _LINUX
+        #include <unistd.h>
+#endif
 
 #include "constants.h"
 #include "vec_utils.h"
@@ -91,8 +93,8 @@
 double projLeftRight = 0.0;
 double projDistance        = 3.0;
 double projTwist                = 0.0;
-double projElevation        = 90.0;
-double projAzimuth                = -90.0;
+double projElevation        = 0.0;
+double projAzimuth                = 0.0;
 
 bool spinning = false;
 static GLfloat theta[3] = { 0.0, 0.0, 0.0 };
@@ -110,6 +112,7 @@
 int edge_field, cell_field, vertex_field;
 int cur_level = 0;
 int cur_time = 0;
+int cur_screenshot = 1;
 
 double *xcell;
 double *ycell;
@@ -2171,7 +2174,10 @@
                         draw_sphere = !draw_sphere;
                         break;
                 case KEY_q:
-                        screenshot("ss.tga", 800, 800);
+                        char filename[100];
+                        sprintf(filename, "ss.%04d.tga", cur_screenshot);
+                        screenshot(filename, 800, 800);
+                        cur_screenshot++;
                         break;
                 default:
                         break;
@@ -2365,5 +2371,5 @@
         delete[] data;
         data=NULL;
 
-        cout << "Screenshot written to: ss.tga" << endl;
+        cout << "Screenshot written to: " << filename << endl;
 }/*}}}*/
</font>
</pre>