<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 &lt;iomanip&gt;
 #include &lt;string&gt;
 #include &lt;vector&gt;
-//#include &lt;unistd.h&gt;
+#ifdef _LINUX
+        #include &lt;unistd.h&gt;
+#endif
 
 #include &quot;constants.h&quot;
 #include &quot;vec_utils.h&quot;
@@ -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(&quot;ss.tga&quot;, 800, 800);
+                        char filename[100];
+                        sprintf(filename, &quot;ss.%04d.tga&quot;, cur_screenshot);
+                        screenshot(filename, 800, 800);
+                        cur_screenshot++;
                         break;
                 default:
                         break;
@@ -2365,5 +2371,5 @@
         delete[] data;
         data=NULL;
 
-        cout &lt;&lt; &quot;Screenshot written to: ss.tga&quot; &lt;&lt; endl;
+        cout &lt;&lt; &quot;Screenshot written to: &quot; &lt;&lt; filename &lt;&lt; endl;
 }/*}}}*/

</font>
</pre>