XPlor/libs/xassets/xgfxreflectionprobe.cpp
2025-09-05 18:35:17 -04:00

28 lines
482 B
C++

#include "xgfxreflectionprobe.h"
XGfxReflectionProbe::XGfxReflectionProbe()
: XAsset()
, mOrigin()
, mReflectionImage(new XGfxImage())
{
}
XGfxReflectionProbe::~XGfxReflectionProbe()
{
}
void XGfxReflectionProbe::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) {
*aStream
>> mOrigin;
mReflectionImage->ParseData(aStream);
}
}
void XGfxReflectionProbe::Clear() {
mOrigin = QVector3D();
mReflectionImage->Clear();
}