2025-08-17 13:14:17 -04:00
|
|
|
#include "xgfxlightimage.h"
|
|
|
|
|
|
|
|
|
|
XGfxLightImage::XGfxLightImage()
|
|
|
|
|
: XAsset()
|
2025-09-10 21:58:26 -04:00
|
|
|
, mImage()
|
2025-08-17 13:14:17 -04:00
|
|
|
, mSamplerState(0)
|
|
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
SetName("GFX Light Image");
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XGfxLightImage::~XGfxLightImage()
|
|
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
void XGfxLightImage::ParseData(XDataStream *aStream)
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
mImage.ParsePtr(aStream, false);
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
*aStream >> mSamplerState;
|
|
|
|
|
|
|
|
|
|
aStream->skipRawData(3);
|
|
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
mImage.ParseData(aStream);
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XGfxLightImage::Clear()
|
|
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
mImage.Clear();
|
2025-08-17 13:14:17 -04:00
|
|
|
mSamplerState = 0;
|
|
|
|
|
}
|