First little test project for PS1 programming using PSn00bSDK
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.
 
 

45 lines
659 B

#ifndef __PS1MDL_H__
#define __PS1MDL_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
int ident;
int version;
unsigned short skinWidth;
unsigned short skinHeight;
unsigned short vertexCount;
unsigned short triangleCount;
unsigned short frameCount;
unsigned short pad;
} ps1mdl_header_t;
typedef struct
{
short onSeam;
short u, v;
} ps1mdl_texcoord_t;
typedef struct
{
short frontFace;
unsigned short vertexIndex[3];
} ps1mdl_triangle_t;
typedef struct
{
unsigned char position[3];
unsigned char normalIndex;
} ps1mdl_vertex_t;
#ifdef __cplusplus
}
#endif
#endif // __PS1BSP_H__