XPlor/libs/xassets/xgfxlight.h

41 lines
615 B
C
Raw Normal View History

2025-08-17 13:14:17 -04:00
#ifndef XGFXLIGHT_H
#define XGFXLIGHT_H
#include "qcolor.h"
2025-08-17 13:14:17 -04:00
#include "xasset.h"
class XGfxLightDef;
2025-08-17 13:14:17 -04:00
class XGfxLight : public XAsset
{
public:
explicit XGfxLight();
~XGfxLight();
2025-08-17 13:14:17 -04:00
void ParseData(QDataStream *aStream) override;
2025-09-05 18:35:17 -04:00
void Clear() override;
2025-08-17 13:14:17 -04:00
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;
2025-08-17 13:14:17 -04:00
};
#endif // XGFXLIGHT_H