[Plib-devel] Changes to ssgLoad and ssgSave.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-03-20 04:20:05
|
I've hacked ssgLoad and ssgSave to change the way that they connect file name extensions to file formats. There is now a table of file name extensions and the corresponding loaders and writers: static _ssgFileFormat formats[] = { { ".3ds", ssgLoad3ds , NULL }, { ".ac" , ssgLoadAC3D, ssgSaveAC }, { ".ase", ssgLoadASE , ssgSaveASE }, { ".dxf", ssgLoadDXF , ssgSaveDXF }, { ".obj", ssgLoadOBJ , ssgSaveOBJ }, { ".ssg", ssgLoadSSG , ssgSaveSSG }, { ".tri", ssgLoadTRI , ssgSaveTRI }, { ".wrl", ssgLoadVRML, NULL }, { NULL , NULL , NULL } } ; If you add a loader or writer, just add it into the table which can be found in ssg.cxx. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |