Update of /cvsroot/plib/plib/src/ssg
In directory usw-pr-cvs1:/tmp/cvs-serv14820/plib/src/ssg
Modified Files:
Makefile.am ssg.cxx ssg.h
Added Files:
ssgSaveFLT.cxx
Log Message:
Fix for puFileSelector committed on behalf of John Fay.
--- NEW FILE: ssgSaveFLT.cxx ---
/*
PLIB - A Suite of Portable Game Libraries
Copyright (C) 1998,2002 Steve Baker
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For further information visit http://plib.sourceforge.net
[...282 lines suppressed...]
int ssgSaveFLT ( const char *fname, ssgEntity *root )
{
save_fd = NULL ;
if ( ( save_fd = fopen ( fname, "wb") ) == NULL )
{
fprintf ( stderr, "Could not open file '%s' for writing.\n", fname ) ;
return FALSE ;
}
writeHeader () ;
writeEntity ( root ) ;
fclose ( save_fd ) ;
return TRUE ;
}
Index: Makefile.am
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/Makefile.am,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- Makefile.am 27 Sep 2002 15:45:06 -0000 1.39
+++ Makefile.am 17 Oct 2002 12:05:00 -0000 1.40
@@ -23,7 +23,7 @@
ssgLoadOFF.cxx ssgSaveOFF.cxx ssgSaveQHI.cxx ssgLoadVRML1.cxx \
ssgSaveVRML1.cxx ssgLoaderWriterStuff.h ssgMSFSPalette.h ssg3ds.h \
ssgLoadMDL.h ssgSave3ds.cxx ssgAxisTransform.cxx ssgLoadATG.cxx \
- ssgSaveATG.cxx ssgLoadIV.cxx ssgLoad.cxx ssgLoadVRML.h \
+ ssgSaveFLT.cxx ssgSaveATG.cxx ssgLoadIV.cxx ssgLoad.cxx ssgLoadVRML.h \
ssgLoadMDL_BGLTexture.cxx ssgLoadXPlaneObj.cxx
INCLUDES = -I$(top_srcdir)/src/sg -I$(top_srcdir)/src/util
Index: ssg.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssg.cxx,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- ssg.cxx 27 Sep 2002 15:45:06 -0000 1.58
+++ ssg.cxx 17 Oct 2002 12:05:00 -0000 1.59
@@ -134,7 +134,7 @@
ssgAddModelFormat ( ".tri", ssgLoadTRI , ssgSaveTRI ) ;
ssgAddModelFormat ( ".md2", ssgLoadMD2 , NULL ) ;
ssgAddModelFormat ( ".x" , ssgLoadX , ssgSaveX ) ;
- ssgAddModelFormat ( ".flt", ssgLoadFLT , NULL ) ;
+ ssgAddModelFormat ( ".flt", ssgLoadFLT , ssgSaveFLT ) ;
ssgAddModelFormat ( ".strip", ssgLoadStrip, NULL ) ;
ssgAddModelFormat ( ".m" , ssgLoadM , ssgSaveM ) ;
ssgAddModelFormat ( ".off" , ssgLoadOFF , ssgSaveOFF ) ;
Index: ssg.h
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- ssg.h 27 Sep 2002 15:45:06 -0000 1.150
+++ ssg.h 17 Oct 2002 12:05:00 -0000 1.151
@@ -2630,9 +2630,9 @@
int ssgSaveX ( const char *fname, ssgEntity *ent ) ;
int ssgSaveM ( const char *fname, ssgEntity *ent ) ;
int ssgSave3ds ( const char *fname, ssgEntity *ent ) ;
+int ssgSaveFLT ( const char *fname, ssgEntity *ent ) ;
int ssgSaveOFF ( const char *fname, ssgEntity *ent ) ;
int ssgSaveQHI ( const char *fname, ssgEntity *ent ) ;
-int ssgSave3ds ( const char *fname, ssgEntity *ent ) ;
int ssgSaveATG ( const char *fname, ssgEntity *ent ) ;
int ssgSaveVRML1( const char *fname, ssgEntity *ent ) ;
|