This commit is contained in:
parent
91f0e93fd7
commit
2ce3536060
3 changed files with 94 additions and 23 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue