[Plib-cvs] plib/src/ssg ssgSaveIV.cxx,NONE,1.1 Makefile.am,1.45,1.46 ssg.cxx,1.66,1.67 ssg.dsp,1.50,
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2004-09-26 09:39:03
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21025 Modified Files: Makefile.am ssg.cxx ssg.dsp ssg.h Added Files: ssgSaveIV.cxx Log Message: Added OpenInventor exporter --- NEW FILE: ssgSaveIV.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 [...262 lines suppressed...] // Entry point: save ssg hierarchy as an OpenInventor file. int ssgSaveIV ( const char *filename, ssgEntity *ent ) { FILE *f = fopen( filename, "w" ) ; if ( !f ) return FALSE ; fprintf( f, "#Inventor V2.1 ascii\n" ) ; fprintf ( f, "#Export from plib version %d.%d.%d\n\n", PLIB_MAJOR_VERSION, PLIB_MINOR_VERSION, PLIB_TINY_VERSION ) ; indentLevel = 0 ; walkTree( ent, f ) ; return TRUE ; } Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/Makefile.am,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- Makefile.am 2 Feb 2004 01:35:15 -0000 1.45 +++ Makefile.am 26 Sep 2004 09:38:52 -0000 1.46 @@ -26,6 +26,7 @@ ssgLoadMDL.h ssgSave3ds.cxx ssgAxisTransform.cxx ssgLoadATG.cxx \ ssgSaveFLT.cxx ssgSaveATG.cxx ssgLoadIV.cxx ssgLoad.cxx ssgLoadVRML.h \ ssgLoadMDL_BGLTexture.cxx ssgLoadXPlaneObj.cxx ssgSaveASC.cxx \ + ssgSaveIV.cxx \ ssgVertSplitter.h ssgVertSplitter.cxx ssgStatistics.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.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- ssg.cxx 24 Jun 2004 16:30:54 -0000 1.66 +++ ssg.cxx 26 Sep 2004 09:38:52 -0000 1.67 @@ -145,7 +145,7 @@ ssgAddModelFormat ( ".atg" , ssgLoadATG , ssgSaveATG ) ; ssgAddModelFormat ( ".qhi" , NULL , ssgSaveQHI ) ; ssgAddModelFormat ( ".wrl", ssgLoadVRML1, ssgSaveVRML1 ) ; - ssgAddModelFormat ( ".iv", ssgLoadIV , NULL ) ; + ssgAddModelFormat ( ".iv", ssgLoadIV , ssgSaveIV ) ; ssgAddModelFormat ( ".asc", NULL , ssgSaveASC ) ; //ssgAddModelFormat ( ".pov", NULL , ssgSavePOV ) ; Index: ssg.dsp =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.dsp,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- ssg.dsp 25 Mar 2004 18:27:13 -0000 1.50 +++ ssg.dsp 26 Sep 2004 09:38:52 -0000 1.51 @@ -218,6 +218,10 @@ # End Source File # Begin Source File +SOURCE=.\ssgSaveIV.cxx +# End Source File +# Begin Source File + SOURCE=.\ssgLoadM.cxx # End Source File # Begin Source File Index: ssg.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v retrieving revision 1.171 retrieving revision 1.172 diff -u -d -r1.171 -r1.172 --- ssg.h 24 Jun 2004 16:30:54 -0000 1.171 +++ ssg.h 26 Sep 2004 09:38:52 -0000 1.172 @@ -2715,6 +2715,7 @@ int ssgSaveATG ( const char *fname, ssgEntity *ent ) ; int ssgSaveVRML1( const char *fname, ssgEntity *ent ) ; int ssgSaveASC ( const char *fname, ssgEntity *ent ) ; +int ssgSaveIV ( const char *fname, ssgEntity *ent ) ; int ssgSavePOV ( const char *fname, ssgEntity *ent ) ; |