123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef __MODEL_ASE_H__
- #define __MODEL_ASE_H__
- typedef struct {
- int vertexNum[3];
- int tVertexNum[3];
- idVec3 faceNormal;
- idVec3 vertexNormals[3];
- byte vertexColors[3][4];
- } aseFace_t;
- typedef struct {
- int timeValue;
- int numVertexes;
- int numTVertexes;
- int numCVertexes;
- int numFaces;
- int numTVFaces;
- int numCVFaces;
- idVec3 transform[4];
- bool colorsParsed;
- bool normalsParsed;
- idVec3 * vertexes;
- idVec2 * tvertexes;
- idVec3 * cvertexes;
- aseFace_t * faces;
- } aseMesh_t;
- typedef struct {
- char name[128];
- float uOffset, vOffset;
- float uTiling, vTiling;
- float angle;
- } aseMaterial_t;
- typedef struct {
- char name[128];
- int materialRef;
- aseMesh_t mesh;
-
- idList<aseMesh_t*, TAG_MODEL> frames;
- } aseObject_t;
- typedef struct aseModel_s {
- ID_TIME_T timeStamp;
- idList<aseMaterial_t *, TAG_MODEL> materials;
- idList<aseObject_t *, TAG_MODEL> objects;
- } aseModel_t;
- aseModel_t *ASE_Load( const char *fileName );
- void ASE_Free( aseModel_t *ase );
- #endif
|