This commit is contained in:
Daveo 2001-01-12 22:37:21 +00:00
parent 91f0e93fd7
commit 2ce3536060
3 changed files with 94 additions and 23 deletions

View file

@ -36,11 +36,17 @@ enum BONE_NAME
MAX_BONE
};
*/
//***************************************************************************
//*** Base Types ************************************************************
//***************************************************************************
#ifndef sQuat
struct sQuat
{
s16 vx,vy,vz,vw;
#ifdef WIN32
bool operator==(sQuat const &v1) {return((vx==v1.vx) && (vy==v1.vy) && (vz==v1.vz) && (vw==v1.vw));}
#endif
};
#endif
@ -65,7 +71,7 @@ struct sNormal
s16 nX,nY,nZ,pD;
};
//---------------------------------------------------------------------------
//***************************************************************************
struct sBBox
{
s16 XMin,YMin,ZMin;
@ -81,6 +87,23 @@ struct sMat
// s32 DblFlag;
};
//***************************************************************************
struct sWeight
{
s16 vx,vy,vz,VtxNo; // 8
};
//***************************************************************************
struct sBone
{
sVtx BoneSize; // 8
s16 Parent,Idx; // 4
s32 WeightCount; // 4
sWeight *WeightList; // 4
}; // 20
//***************************************************************************
//*** Poly Types ************************************************************
//***************************************************************************
struct sTri
{
@ -110,22 +133,7 @@ struct sQuad
}; // 20
//***************************************************************************
struct sWeight
{
s16 vx,vy,vz,VtxNo; // 8
};
//***************************************************************************
struct sBone
{
sVtx BoneSize; // 8
s16 Parent,Idx; // 4
s32 WeightCount; // 4
sWeight *WeightList; // 4
}; // 20
//***************************************************************************
//***************************************************************************
//*** Game Types and Headers ************************************************
//***************************************************************************
// Maps
@ -229,5 +237,25 @@ struct sActor3dHdr
sWeight *WeightList;
};
//***************************************************************************
// Anim
typedef u16 AnimIdx;
struct sAnim3dFileHdr
{
u16 BoneCount;
u16 AnimCount;
sQuat *QuatTable;
// Anim Hdrs....
};
struct sAnim3dHdr
{
u16 FrameCount;
u16 Pad;
AnimIdx *Anim;
s32 *Move;
};
#endif