2025-08-14 17:30:25 -04:00
|
|
|
#ifndef XMODEL_H
|
|
|
|
|
#define XMODEL_H
|
2025-06-07 11:20:47 -04:00
|
|
|
|
2025-08-14 17:30:25 -04:00
|
|
|
#include "xasset.h"
|
2025-09-03 13:02:54 -04:00
|
|
|
#include "xmodelstreaminfo.h"
|
|
|
|
|
#include "xphysgeomlist.h"
|
|
|
|
|
#include "xphyspreset.h"
|
|
|
|
|
#include "xscriptstringlist.h"
|
|
|
|
|
#include "xboneinfo.h"
|
|
|
|
|
#include "xmodellodinfo.h"
|
|
|
|
|
#include "xmodelcollsurf.h"
|
|
|
|
|
#include "xmaterial.h"
|
|
|
|
|
#include "xsurface.h"
|
|
|
|
|
#include "xdobjanimmat.h"
|
2025-08-14 17:30:25 -04:00
|
|
|
|
|
|
|
|
class XModel : public XAsset
|
2025-06-07 11:20:47 -04:00
|
|
|
{
|
2025-08-14 17:30:25 -04:00
|
|
|
public:
|
|
|
|
|
explicit XModel();
|
|
|
|
|
|
2025-09-03 13:02:54 -04:00
|
|
|
virtual void ParseData(QDataStream* aStream) override;
|
|
|
|
|
virtual void Clear() override;
|
2025-08-14 17:30:25 -04:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString mName;
|
2025-09-03 13:02:54 -04:00
|
|
|
quint8 mNumBones;
|
|
|
|
|
quint8 mNumRootBones;
|
|
|
|
|
quint8 mNumSurfs;
|
|
|
|
|
quint8 mLodRampType;
|
|
|
|
|
XScriptStringList mBoneNames;
|
|
|
|
|
QVector<quint8> mParentList;
|
|
|
|
|
QVector<quint8> mQuats;
|
|
|
|
|
float *mTrans;
|
|
|
|
|
quint8 *mPartClassification;
|
|
|
|
|
XDObjAnimMat *mBaseMat;
|
|
|
|
|
QVector<XSurface> mSurfs;
|
|
|
|
|
QVector<XMaterial*> mMaterialHandles;
|
|
|
|
|
QVector<XModelLodInfo> mLodInfo;
|
|
|
|
|
QVector<XModelCollSurf> mCollSurfs;
|
|
|
|
|
int mNumCollSurfs;
|
|
|
|
|
int mContents;
|
|
|
|
|
XBoneInfo* mBoneInfo;
|
|
|
|
|
float mRadius;
|
|
|
|
|
QVector3D mMins;
|
|
|
|
|
QVector3D mMaxs;
|
|
|
|
|
qint16 mNumLods;
|
|
|
|
|
qint16 mCollLod;
|
|
|
|
|
XModelStreamInfo mStreamInfo;
|
|
|
|
|
int mMemUsage;
|
|
|
|
|
quint8 mFlags;
|
|
|
|
|
XPhysPreset* mPhysPreset;
|
|
|
|
|
XPhysGeomList* mPhysGeoms;
|
2025-06-07 11:20:47 -04:00
|
|
|
};
|
|
|
|
|
|
2025-08-14 17:30:25 -04:00
|
|
|
#endif // XMODEL_H
|