#ifndef XGFXLIGHT_H
#define XGFXLIGHT_H

#include "qcolor.h"
#include "xasset.h"

class XGfxLightDef;

class XGfxLight : public XAsset
{
public:
    explicit XGfxLight();
    ~XGfxLight();

    void ParseData(QDataStream *aStream) override;
    void Clear() override;
private:
    unsigned char mType;
    unsigned char mCanUseShadowMap;
    QColor mColor;
    QVector<float> mDir;
    QVector<float> mOrigin;
    float mRadius;
    float mCosHalfFovOuter;
    float mCosHalfFovInner;
    qint32 mExponent;
    quint32 mSpotShadowIndex;
    qint32 mDefPtr;
    XGfxLightDef *mDef;
};

#endif // XGFXLIGHT_H








