2025-08-17 13:14:17 -04:00
|
|
|
#include "xgfxlightdef.h"
|
|
|
|
|
|
|
|
|
|
XGfxLightDef::XGfxLightDef()
|
|
|
|
|
: XAsset()
|
2025-09-07 23:11:55 -04:00
|
|
|
, mName()
|
|
|
|
|
, mAttenuation()
|
2025-08-17 13:14:17 -04:00
|
|
|
, mLmapLookupStart(0)
|
|
|
|
|
{
|
2025-09-05 18:35:17 -04:00
|
|
|
SetType(ASSET_TYPE_LIGHT_DEF);
|
|
|
|
|
SetName("Light Def");
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XGfxLightDef::~XGfxLightDef()
|
|
|
|
|
{
|
2025-09-07 23:11:55 -04:00
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XGfxLightDef::Clear()
|
|
|
|
|
{
|
2025-09-07 23:11:55 -04:00
|
|
|
mName.Clear();
|
|
|
|
|
mAttenuation.Clear();
|
2025-08-17 13:14:17 -04:00
|
|
|
mLmapLookupStart = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XGfxLightDef::ParseData(QDataStream *aStream)
|
|
|
|
|
{
|
2025-09-07 23:11:55 -04:00
|
|
|
mName.ParsePtr(aStream, false);
|
|
|
|
|
mAttenuation.ParseData(aStream);
|
2025-08-17 13:14:17 -04:00
|
|
|
*aStream >> mLmapLookupStart;
|
|
|
|
|
|
2025-09-07 23:11:55 -04:00
|
|
|
mName.ParseData(aStream);
|
|
|
|
|
mAttenuation.ParseData(aStream);
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|