Update of /cvsroot/plib/plib/src/ssg
In directory usw-pr-cvs1:/tmp/cvs-serv18449/plib/src/ssg
Modified Files:
ssgSaveFLT.cxx
Log Message:
Updated FLT writer to generate texture and vertex palette entries.
Index: ssgSaveFLT.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgSaveFLT.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ssgSaveFLT.cxx 17 Oct 2002 12:05:00 -0000 1.1
+++ ssgSaveFLT.cxx 17 Oct 2002 13:42:31 -0000 1.2
@@ -34,7 +34,67 @@
#include <stdio.h>
#include "ssgLocal.h"
-static FILE* save_fd;
+
+struct FLT_texture
+{
+ char fname [ 200 ] ; /* 200 is the OpenFlight limit - don't increase it! */
+} ;
+
+
[...317 lines suppressed...]
+
+ /* Cleanup */
+
+ int max, i ;
+
+ max = texList -> getNumEntities () ;
+
+ for ( i = 0 ; i < max ; i++ )
+ delete (FLT_texture *) texList -> getEntity ( i ) ;
+ delete texList ;
+
+ max = vtxList -> getNumEntities () ;
+
+ for ( i = 0 ; i < max ; i++ )
+ delete (FLT_vertex *) vtxList -> getEntity ( i ) ;
+ delete vtxList ;
+
return TRUE ;
}
|