2025-09-05 21:33:32 +00:00
|
|
|
#ifndef XGFXLIGHTGRID_H
|
|
|
|
|
#define XGFXLIGHTGRID_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xgfxlightgridentry.h"
|
|
|
|
|
#include "xgfxlightgridcolors.h"
|
|
|
|
|
|
|
|
|
|
#include <QVector>
|
|
|
|
|
#include <QVector3D>
|
|
|
|
|
|
|
|
|
|
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;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mSunPrimaryLightIndex;
|
2025-09-05 21:33:32 +00:00
|
|
|
QVector3D mMins;
|
|
|
|
|
QVector3D mMaxs;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mRowAxis;
|
|
|
|
|
quint32 mColAxis;
|
|
|
|
|
quint16 *mRowDataStart;
|
|
|
|
|
quint32 mRawRowDataSize;
|
|
|
|
|
quint8 *mRawRowData;
|
|
|
|
|
quint32 mEntryCount;
|
2025-09-05 21:33:32 +00:00
|
|
|
QVector<XGfxLightGridEntry> mEntries;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mColorCount;
|
2025-09-05 21:33:32 +00:00
|
|
|
QVector<XGfxLightGridColors> mColors;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XGFXLIGHTGRID_H
|