XPlor/libs/xassets/xgfxreflectionprobe.cpp

29 lines
519 B
C++
Raw Normal View History

2025-08-17 13:14:17 -04:00
#include "xgfxreflectionprobe.h"
XGfxReflectionProbe::XGfxReflectionProbe()
2025-09-05 18:35:17 -04:00
: XAsset()
, mOrigin()
, mReflectionImage(new XGfxImage())
{
2025-09-10 21:58:26 -04:00
SetName("GFX Reflection Probe");
2025-08-17 13:14:17 -04:00
}
2025-09-05 18:35:17 -04:00
XGfxReflectionProbe::~XGfxReflectionProbe()
{
2025-08-17 13:14:17 -04:00
}
2025-09-10 21:58:26 -04:00
void XGfxReflectionProbe::ParseData(XDataStream *aStream) {
2025-09-05 18:35:17 -04:00
if (GetPtr() == -1) {
*aStream
>> mOrigin;
2025-08-17 13:14:17 -04:00
2025-09-05 18:35:17 -04:00
mReflectionImage->ParseData(aStream);
}
2025-08-17 13:14:17 -04:00
}
2025-09-05 18:35:17 -04:00
void XGfxReflectionProbe::Clear() {
mOrigin = QVector3D();
mReflectionImage->Clear();
2025-08-17 13:14:17 -04:00
}