Update of /cvsroot/plib/plib/src/ssg
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13670
Modified Files:
ssgSaveASC.cxx
Log Message:
save_scale implemented.
fixed texture file name handling.
Removed possible different behaviour for selectors and other branches regarding saving.
Index: ssgSaveASC.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgSaveASC.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ssgSaveASC.cxx 13 Sep 2004 12:11:56 -0000 1.4
+++ ssgSaveASC.cxx 5 Oct 2004 14:34:47 -0000 1.5
@@ -31,7 +31,8 @@
static FILE *save_fd ;
static ssgSimpleStateArray gSSL;
-
+float save_scale = 1.0f;
+int calledByTheHuman = TRUE;
static void save_vtx_table ( ssgVtxTable *vt )
{
@@ -55,86 +56,90 @@
int num_face = vt -> getNumTriangles () ;
[...209 lines suppressed...]
return FALSE ;
}
-
+ if(calledByTheHuman)
+ if(save_scale!=1.0f)
+ {
+#ifdef WIN32
+ char temp[999];
+ sprintf(temp, "Applying a scale factor of %f", save_scale);
+ ::MessageBox(0, temp, "For your info:", 0);
+#else
+ printf("Applying a scale factor of %f", save_scale);
+#endif
+ }
int result = ssgSaveASC ( save_fd, ent ) ;
fclose ( save_fd ) ;
-
return result ;
}
|