29 lines
519 B
C++
29 lines
519 B
C++
#include "xgfxreflectionprobe.h"
|
|
|
|
XGfxReflectionProbe::XGfxReflectionProbe()
|
|
: XAsset()
|
|
, mOrigin()
|
|
, mReflectionImage(new XGfxImage())
|
|
{
|
|
SetName("GFX Reflection Probe");
|
|
}
|
|
|
|
XGfxReflectionProbe::~XGfxReflectionProbe()
|
|
{
|
|
|
|
}
|
|
|
|
void XGfxReflectionProbe::ParseData(XDataStream *aStream) {
|
|
if (GetPtr() == -1) {
|
|
*aStream
|
|
>> mOrigin;
|
|
|
|
mReflectionImage->ParseData(aStream);
|
|
}
|
|
}
|
|
|
|
void XGfxReflectionProbe::Clear() {
|
|
mOrigin = QVector3D();
|
|
mReflectionImage->Clear();
|
|
}
|