From 63ca1074fcd43de14b30e33b7888f326bc3ea3ce Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 3 Sep 2025 13:07:08 -0400 Subject: [PATCH] Add xgfxpackedvertex structures --- libs/xassets/xgfxpackedvertex.cpp | 23 +++++++++++++++++++++ libs/xassets/xgfxpackedvertex.h | 34 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 libs/xassets/xgfxpackedvertex.cpp create mode 100644 libs/xassets/xgfxpackedvertex.h diff --git a/libs/xassets/xgfxpackedvertex.cpp b/libs/xassets/xgfxpackedvertex.cpp new file mode 100644 index 0000000..a71ab23 --- /dev/null +++ b/libs/xassets/xgfxpackedvertex.cpp @@ -0,0 +1,23 @@ +#include "xgfxpackedvertex.h" + +XGfxPackedVertex::XGfxPackedVertex() + : XAsset() + , mXYZ() + , mBinormalSign(0) + , mColor() + , mTexCoord() + , mNormal() + , mTangent() +{ + +} + +void XGfxPackedVertex::ParseData(QDataStream *aStream) +{ + +} + +void XGfxPackedVertex::Clear() +{ + +} diff --git a/libs/xassets/xgfxpackedvertex.h b/libs/xassets/xgfxpackedvertex.h new file mode 100644 index 0000000..39feea9 --- /dev/null +++ b/libs/xassets/xgfxpackedvertex.h @@ -0,0 +1,34 @@ +#ifndef XGFXPACKEDVERTEX_H +#define XGFXPACKEDVERTEX_H + +#include "xasset.h" +#include "xgfxcolor.h" +#include "xpackedtexcoords.h" +#include "xpackedunitvec.h" + +class XGfxPackedVertex : public XAsset +{ +public: + explicit XGfxPackedVertex(); + + void ParseData(QDataStream *aStream) override; + void Clear() override; + +private: + float mXYZ[3]; + float mBinormalSign; + XGfxColor mColor; + XPackedTexCoords mTexCoord; + XPackedUnitVec mNormal; + XPackedUnitVec mTangent; +}; + +#endif // XGFXPACKEDVERTEX_H + + + + + + + +