From 54a46e8a3e9716f04e2b12e25460a17986b77e54 Mon Sep 17 00:00:00 2001 From: RedLine AI Agent Date: Fri, 5 Sep 2025 21:33:32 +0000 Subject: [PATCH] Updated libs/xassets/xgfxlightgrid.h --- libs/xassets/xgfxlightgrid.h | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 libs/xassets/xgfxlightgrid.h diff --git a/libs/xassets/xgfxlightgrid.h b/libs/xassets/xgfxlightgrid.h new file mode 100644 index 0000000..585387a --- /dev/null +++ b/libs/xassets/xgfxlightgrid.h @@ -0,0 +1,37 @@ +#ifndef XGFXLIGHTGRID_H +#define XGFXLIGHTGRID_H + +#include "xasset.h" +#include "xgfxlightgridentry.h" +#include "xgfxlightgridcolors.h" + +#include +#include + +class XGfxLightGrid : public XAsset +{ +public: + XGfxLightGrid(); + virtual ~XGfxLightGrid(); + + // Override Clear and ParseData from XAsset + virtual void Clear() override; + virtual void ParseData(QDataStream *aStream) override; + +private: + bool mHasLightRegions; + unsigned int mSunPrimaryLightIndex; + QVector3D mMins; + QVector3D mMaxs; + unsigned int mRowAxis; + unsigned int mColAxis; + unsigned __int16 *mRowDataStart; + unsigned int mRawRowDataSize; + unsigned __int8 *mRawRowData; + unsigned int mEntryCount; + QVector mEntries; + unsigned int mColorCount; + QVector mColors; +}; + +#endif // XGFXLIGHTGRID_H