38 lines
905 B
C
38 lines
905 B
C
|
|
#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;
|
||
|
|
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<XGfxLightGridEntry> mEntries;
|
||
|
|
unsigned int mColorCount;
|
||
|
|
QVector<XGfxLightGridColors> mColors;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XGFXLIGHTGRID_H
|