[Plib-cvs] CVS: plib/doc/ssg non_class.html,1.25,1.26
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2002-01-17 15:47:08
|
Update of /cvsroot/plib/plib/doc/ssg In directory usw-pr-cvs1:/tmp/cvs-serv685 Modified Files: non_class.html Log Message: The hookfunctions have been wrapped in the ssgLoaderOptions. Minor format descriptions added. Index: non_class.html =================================================================== RCS file: /cvsroot/plib/plib/doc/ssg/non_class.html,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- non_class.html 2001/10/27 05:34:47 1.25 +++ non_class.html 2002/01/17 15:47:04 1.26 @@ -187,21 +187,21 @@ <li> ssgLoadOBJ - Wavefront, works well <li> ssgLoadTRI - simple Tri format from "Andy Colbournes Editor". <li> ssgLoadX - Microsofts DirectX-Format. Most features work. -<li> ssgLoadOFF - ??? +<li> ssgLoadOFF - Geomview's OFF <li> ssgLoadM - ??? -<li> ssgLoadATG - ??? -<li> ssgLoadStrip - ??? +<li> ssgLoadATG - Ascii TerraGear. Used by Flight Gear Flight Sim. +<li> ssgLoadStrip - The format of a stripifier. </ul> <pre> typedef ssgBranch *(*ssgHookFunc)(char *) ; - - ssgEntity *ssgLoad ( char *fname, ssgHookFunc hookfunc = NULL ) ; - ssgEntity *ssgLoadSSG ( char *fname, ssgHookFunc hookfunc = NULL ) ; - ssgEntity *ssgLoadAC ( char *fname, ssgHookFunc hookfunc = NULL ) ; - ssgEntity *ssgLoad3ds ( char *fname, ssgHookFunc hookfunc = NULL ) ; + ssgEntity *ssgLoad ( const char *fname, const ssgLoaderOptions *options = NULL ) ; + + ssgEntity *ssgLoadSSG ( const char *fname, const ssgLoaderOptions *options = NULL ) ; + ssgEntity *ssgLoadAC ( const char *fname, const ssgLoaderOptions *options = NULL ) ; + ssgEntity *ssgLoad3ds ( const char *fname, const ssgLoaderOptions *options = NULL ) ; ...etc... </pre> @@ -241,6 +241,19 @@ </pre> You can only supply one path. If you need additional features, use the function <code>ulFindFile</code> (for more see util-library-doc). + +The last three functions simply set values in the _ssgCurrentOptions +(type ssgLoaderOptions), for example: + +<pre> +inline void ssgModelPath ( const char *path ) +{ + _ssgCurrentOptions -> setModelDir ( path ) ; +} +</pre> + +For more on ssgLoaderOptions see also the next page of this doc. + <p> Some loaders for file formats that use texture formats not |