pm_md3.c File Reference

#include "picointernal.h"
Include dependency graph for pm_md3.c:

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 Documentation

#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().

#define PM_MD3_C

Definition at line 36 of file pm_md3.c.


Typedef Documentation

typedef struct md3_s md3_t
typedef struct md3Frame_s md3Frame_t
typedef struct md3Shader_s md3Shader_t
typedef struct md3Surface_s md3Surface_t
typedef struct md3Tag_s md3Tag_t
typedef struct md3TexCoord_s md3TexCoord_t
typedef struct md3Triangle_s md3Triangle_t
typedef struct md3Vertex_s md3Vertex_t

Function Documentation

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]

Variable Documentation

Initial value:
 { "1.3", 
"Quake 3 Arena", 
"Randy Reddig", 
"2002 Randy Reddig", 
{ "md3", NULL, NULL, NULL 
}, _md3_canload, 
_md3_load, 
NULL, 
NULL 
}

external modules

Definition at line 366 of file pm_md3.c.


Generated by  doxygen 1.6.2