You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
711 B
47 lines
711 B
#ifndef __PS1MDL_H__
|
|
#define __PS1MDL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
int ident;
|
|
int version;
|
|
|
|
unsigned short vertexCount;
|
|
unsigned short triangleCount;
|
|
unsigned short frameCount;
|
|
} ps1mdl_header_t;
|
|
|
|
typedef struct
|
|
{
|
|
char onSeam;
|
|
short u, v;
|
|
} ps1mdl_texcoord_t;
|
|
|
|
typedef struct
|
|
{
|
|
unsigned short vertexIndex[3];
|
|
} ps1mdl_triangle_t;
|
|
|
|
typedef struct
|
|
{
|
|
unsigned char position[3];
|
|
unsigned char normalIndex;
|
|
} ps1mdl_vertex_t;
|
|
|
|
typedef struct
|
|
{
|
|
ps1mdl_header_t *header;
|
|
ps1mdl_texcoord_t *texCoords;
|
|
ps1mdl_triangle_t *triangles;
|
|
ps1mdl_vertex_t *vertices;
|
|
} ps1mdl_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __PS1BSP_H__
|