2025-09-03 13:25:58 -04:00
|
|
|
#ifndef XSURFACE_H
|
|
|
|
|
#define XSURFACE_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xd3dindexbuffer.h"
|
|
|
|
|
#include "xrigidvertlist.h"
|
|
|
|
|
#include "xsurfacevertexinfo.h"
|
|
|
|
|
#include "xgfxpackedvertex.h"
|
|
|
|
|
#include "xd3dvertexbuffer.h"
|
|
|
|
|
|
|
|
|
|
class XSurface : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XSurface();
|
|
|
|
|
|
|
|
|
|
void ParseData(QDataStream *aStream) override;
|
|
|
|
|
void Clear() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
quint8 mTileMode;
|
|
|
|
|
bool mDeformed;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mVertCount;
|
|
|
|
|
quint32 mTriCount;
|
|
|
|
|
quint32 *mTriIndices;
|
2025-09-03 13:25:58 -04:00
|
|
|
XSurfaceVertexInfo mVertInfo;
|
|
|
|
|
XGfxPackedVertex *mVerts0;
|
|
|
|
|
XD3DVertexBuffer mVb0;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mVertListCount;
|
2025-09-03 13:25:58 -04:00
|
|
|
QVector<XRigidVertList> mVertList;
|
|
|
|
|
XD3DIndexBuffer mIndexBuffer;
|
|
|
|
|
int mPartBits[4];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XSURFACE_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|