[Plib-cvs] plib/src/ssg ssgLoadDOF.cxx,NONE,1.1 Makefile.am,1.40,1.41 ssg.cxx,1.62,1.63 ssg.h,1.160,
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2003-01-29 19:33:44
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv26555/plib/src/ssg Modified Files: Makefile.am ssg.cxx ssg.h Added Files: ssgLoadDOF.cxx Log Message: Added DOF loader for 'racer' files. --- NEW FILE: ssgLoadDOF.cxx --- /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2003 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 [...599 lines suppressed...] break ; case TOKEN_EDOF : cleanUp () ; return model ; case TOKEN_EOF : cleanUp () ; return NULL ; default : ulSetError ( UL_WARNING, "ssgLoadDOF: '%s' contains an unrecognised token?!?", filename ) ; cleanUp () ; return NULL ; } } } Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/Makefile.am,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- Makefile.am 17 Oct 2002 12:05:00 -0000 1.40 +++ Makefile.am 29 Jan 2003 19:33:40 -0000 1.41 @@ -7,7 +7,8 @@ libplibssg_a_SOURCES = ssg.cxx ssgAnimation.cxx ssgBase.cxx \ ssgBaseTransform.cxx ssgBranch.cxx ssgContext.cxx ssgCutout.cxx \ ssgDList.cxx ssgEntity.cxx ssgIsect.cxx ssgLeaf.cxx ssgList.cxx \ - ssgLoadAC.cxx ssgLocal.h ssgOptimiser.cxx ssgRoot.cxx ssgSaveAC.cxx \ + ssgLoadDOF.cxx ssgLoadAC.cxx \ + ssgLocal.h ssgOptimiser.cxx ssgRoot.cxx ssgSaveAC.cxx \ ssgSelector.cxx ssgSimpleState.cxx ssgState.cxx ssgStateTables.cxx \ ssgStats.cxx ssgTween.cxx ssgTweenController.cxx \ ssgTexTrans.cxx ssgTexture.cxx ssgTransform.cxx \ Index: ssg.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.cxx,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- ssg.cxx 1 Dec 2002 18:21:47 -0000 1.62 +++ ssg.cxx 29 Jan 2003 19:33:40 -0000 1.63 @@ -129,6 +129,7 @@ ssgAddModelFormat ( ".3ds", ssgLoad3ds , ssgSave3ds ) ; ssgAddModelFormat ( ".ac" , ssgLoadAC3D , ssgSaveAC ) ; ssgAddModelFormat ( ".ase", ssgLoadASE , ssgSaveASE ) ; + ssgAddModelFormat ( ".dof", ssgLoadDOF , NULL ) ; ssgAddModelFormat ( ".dxf", ssgLoadDXF , ssgSaveDXF ) ; ssgAddModelFormat ( ".obj", ssgLoadOBJ , ssgSaveOBJ ) ; ssgAddModelFormat ( ".tri", ssgLoadTRI , ssgSaveTRI ) ; Index: ssg.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v retrieving revision 1.160 retrieving revision 1.161 diff -u -d -r1.160 -r1.161 --- ssg.h 4 Dec 2002 20:15:21 -0000 1.160 +++ ssg.h 29 Jan 2003 19:33:40 -0000 1.161 @@ -1536,7 +1536,7 @@ ssgNormalArray *nl, ssgTexCoordArray *tl, ssgColourArray *cl, - ssgIndexArray *il ) ; + ssgIndexArray *il ) ; virtual void drawHighlight ( sgVec4 colour ) ; virtual void drawHighlight ( sgVec4 colour, int i ) ; @@ -2687,6 +2687,7 @@ ssgEntity *ssgLoadAC3D ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ssgEntity *ssgLoadSSG ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ssgEntity *ssgLoadASE ( const char *fname, const ssgLoaderOptions *options = NULL ) ; +ssgEntity *ssgLoadDOF ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ssgEntity *ssgLoadDXF ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ssgEntity *ssgLoadTRI ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ssgEntity *ssgLoadOBJ ( const char *fname, const ssgLoaderOptions *options = NULL ) ; |