1 /* -----------------------------------------------------------------------------
5 Copyright (c) 2002, Randy Reddig & seaw0lf
8 Redistribution and use in source and binary forms, with or without modification,
9 are permitted provided that the following conditions are met:
11 Redistributions of source code must retain the above copyright notice, this list
12 of conditions and the following disclaimer.
14 Redistributions in binary form must reproduce the above copyright notice, this
15 list of conditions and the following disclaimer in the documentation and/or
16 other materials provided with the distribution.
18 Neither the names of the copyright holders nor the names of its contributors may
19 be used to endorse or promote products derived from this software without
20 specific prior written permission.
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
26 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 ----------------------------------------------------------------------------- */
36 #include "picointernal.h"
40 /* external modules */
41 extern const picoModule_t picoModuleMD3;
42 extern const picoModule_t picoModule3DS;
43 extern const picoModule_t picoModuleASE;
44 extern const picoModule_t picoModuleOBJ;
45 extern const picoModule_t picoModuleMS3D;
46 extern const picoModule_t picoModuleMDC;
47 extern const picoModule_t picoModuleMD2;
48 extern const picoModule_t picoModuleFM;
49 extern const picoModule_t picoModuleLWO;
50 extern const picoModule_t picoModuleTerrain;
54 /* list of all supported file format modules */
55 const picoModule_t *picoModules[] =
57 &picoModuleMD3, /* quake3 arena md3 */
58 &picoModule3DS, /* autodesk 3ds */
59 &picoModuleASE, /* autodesk ase */
60 &picoModuleMS3D, /* milkshape3d */
61 &picoModuleMDC, /* return to castle wolfenstein mdc */
62 &picoModuleMD2, /* quake2 md2 */
63 &picoModuleFM, /* heretic2 fm */
64 &picoModuleLWO, /* lightwave object */
65 &picoModuleTerrain, /* picoterrain object */
66 &picoModuleOBJ, /* wavefront object */
74 returns a pointer to the module list and optionally stores
75 the number of supported modules in 'numModules'. Note that
76 this param can be NULL when the count is not needed.
79 const picoModule_t **PicoModuleList( int *numModules ){
80 /* get module count */
81 if ( numModules != NULL ) {
82 for ( ( *numModules ) = 0; picoModules[ *numModules ] != NULL; ( *numModules )++ ) ;
85 /* return list of modules */
86 return (const picoModule_t**) picoModules;