#include "picointernal.h"
Go to the source code of this file.
Data Structures | |
struct | md3Frame_s |
struct | md3Tag_s |
struct | md3Surface_s |
struct | md3Shader_s |
struct | md3Triangle_s |
struct | md3TexCoord_s |
struct | md3Vertex_s |
struct | md3_s |
Defines | |
#define | PM_MD3_C |
#define | MD3_MAGIC "IDP3" |
#define | MD3_VERSION 15 |
#define | MD3_SCALE (1.0f / 64.0f) |
Typedefs | |
typedef struct md3Frame_s | md3Frame_t |
typedef struct md3Tag_s | md3Tag_t |
typedef struct md3Surface_s | md3Surface_t |
typedef struct md3Shader_s | md3Shader_t |
typedef struct md3Triangle_s | md3Triangle_t |
typedef struct md3TexCoord_s | md3TexCoord_t |
typedef struct md3Vertex_s | md3Vertex_t |
typedef struct md3_s | md3_t |
Functions | |
static int | _md3_canload (PM_PARAMS_CANLOAD) |
Validates a quake3 arena md3 model file. btw, i use the preceding underscore cause it's a static func referenced by one structure only. | |
static picoModel_t * | _md3_load (PM_PARAMS_LOAD) |
Loads a quake3 arena md3 model file. | |
Variables | |
const picoModule_t | picoModuleMD3 |
#define MD3_MAGIC "IDP3" |
Definition at line 42 of file pm_md3.c.
Referenced by _md3_canload(), and _md3_load().
#define MD3_SCALE (1.0f / 64.0f) |
Definition at line 46 of file pm_md3.c.
Referenced by _md3_load().
#define MD3_VERSION 15 |
Definition at line 43 of file pm_md3.c.
Referenced by _md3_canload(), and _md3_load().
typedef struct md3Frame_s md3Frame_t |
typedef struct md3Shader_s md3Shader_t |
typedef struct md3Surface_s md3Surface_t |
typedef struct md3TexCoord_s md3TexCoord_t |
typedef struct md3Triangle_s md3Triangle_t |
typedef struct md3Vertex_s md3Vertex_t |
static int _md3_canload | ( | PM_PARAMS_CANLOAD | ) | [static] |
Validates a quake3 arena md3 model file. btw, i use the preceding underscore cause it's a static func referenced by one structure only.
Definition at line 126 of file pm_md3.c.
References _pico_little_long(), md3_s::magic, MD3_MAGIC, MD3_VERSION, PICO_PMV_ERROR_IDENT, PICO_PMV_ERROR_SIZE, PICO_PMV_ERROR_VERSION, PICO_PMV_OK, and md3_s::version.
static picoModel_t* _md3_load | ( | PM_PARAMS_LOAD | ) | [static] |
Loads a quake3 arena md3 model file.
Definition at line 152 of file pm_md3.c.
References _pico_little_float(), _pico_little_long(), _pico_little_short(), _pico_printf(), _pico_set_color(), _pico_setfext(), _pico_unixify(), md3Frame_s::bounds, md3Surface_s::flags, i, md3Triangle_s::indexes, md3Frame_s::localOrigin, md3_s::magic, MD3_MAGIC, MD3_SCALE, MD3_VERSION, md3Shader_s::name, md3Surface_s::name, md3Vertex_s::normal, md3Surface_s::numFrames, md3_s::numFrames, md3Surface_s::numShaders, md3_s::numSkins, md3_s::numSurfaces, md3_s::numTags, md3Surface_s::numTriangles, md3Surface_s::numVerts, md3Surface_s::ofsEnd, md3_s::ofsEnd, md3_s::ofsFrames, md3Surface_s::ofsShaders, md3Surface_s::ofsSt, md3_s::ofsSurfaces, md3_s::ofsTags, md3Surface_s::ofsTriangles, md3Surface_s::ofsVertexes, PICO_ERROR, PICO_PI, PICO_TRIANGLES, PicoFreeModel(), PicoNewModel(), PicoNewShader(), PicoNewSurface(), PicoSetModelFileName(), PicoSetModelFrameNum(), PicoSetModelName(), PicoSetModelNumFrames(), PicoSetShaderName(), PicoSetSurfaceColor(), PicoSetSurfaceIndex(), PicoSetSurfaceName(), PicoSetSurfaceNormal(), PicoSetSurfaceShader(), PicoSetSurfaceST(), PicoSetSurfaceType(), PicoSetSurfaceXYZ(), md3Frame_s::radius, shader, md3TexCoord_s::st, st, md3_s::version, and md3Vertex_s::xyz.
const picoModule_t picoModuleMD3 |
{ "1.3", "Quake 3 Arena", "Randy Reddig", "2002 Randy Reddig", { "md3", NULL, NULL, NULL }, _md3_canload, _md3_load, NULL, NULL }
external modules