picomodules.c

Go to the documentation of this file.
00001 
00005 /* -----------------------------------------------------------------------------
00006 
00007  PicoModel Library
00008 
00009  Copyright (c) 2002, Randy Reddig & seaw0lf
00010  All rights reserved.
00011 
00012  Redistribution and use in source and binary forms, with or without modification,
00013  are permitted provided that the following conditions are met:
00014 
00015  Redistributions of source code must retain the above copyright notice, this list
00016  of conditions and the following disclaimer.
00017 
00018  Redistributions in binary form must reproduce the above copyright notice, this
00019  list of conditions and the following disclaimer in the documentation and/or
00020  other materials provided with the distribution.
00021 
00022  Neither the names of the copyright holders nor the names of its contributors may
00023  be used to endorse or promote products derived from this software without
00024  specific prior written permission.
00025 
00026  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00027  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00028  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00029  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
00030  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00031  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00032  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00033  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00034  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00035  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036 
00037  ----------------------------------------------------------------------------- */
00038 
00039 /* marker */
00040 #define PICOMODULES_C
00041 
00042 /* dependencies */
00043 #include "picointernal.h"
00044 
00046 extern const picoModule_t picoModuleMD3;
00047 extern const picoModule_t picoModuleASE;
00048 extern const picoModule_t picoModuleOBJ;
00049 extern const picoModule_t picoModuleMD2;
00050 
00052 const picoModule_t *picoModules[] = { &picoModuleMD3, /* quake3 arena md3 */
00053 &picoModuleASE, /* autodesk ase */
00054 &picoModuleMD2, /* ufo md2 */
00055 &picoModuleOBJ, /* wavefront object */
00056 NULL /* terminator */
00057 };
00058 
00064 const picoModule_t **PicoModuleList (int *numModules)
00065 {
00066     /* get module count */
00067     if (numModules != NULL)
00068         for ((*numModules) = 0; picoModules[*numModules] != NULL; (*numModules)++)
00069             ;
00070 
00071     /* return list of modules */
00072     return (const picoModule_t**) picoModules;
00073 }

Generated by  doxygen 1.6.2