XPlor/libs/xassets/xmodelhighmipbounds.cpp

38 lines
668 B
C++
Raw Normal View History

2025-09-03 13:18:40 -04:00
#include "xmodelhighmipbounds.h"
XModelHighMipBounds::XModelHighMipBounds()
: XAsset()
, mMins()
, mMaxs()
{
2025-09-10 21:58:26 -04:00
SetName("Model Highmip Bounds");
2025-09-03 13:18:40 -04:00
}
XModelHighMipBounds::~XModelHighMipBounds()
{
}
2025-09-10 21:58:26 -04:00
void XModelHighMipBounds::ParseData(XDataStream *aStream)
2025-09-03 13:18:40 -04:00
{
2025-09-10 21:58:26 -04:00
for (int i = 0; i < 3; i++)
{
quint32 rawMin;
*aStream >> rawMin;
memcpy(&mMins[i], &rawMin, sizeof(mMins[i]));
}
for (int i = 0; i < 3; i++)
{
quint32 rawMax;
*aStream >> rawMax;
memcpy(&mMaxs[i], &rawMax, sizeof(mMaxs[i]));
}
2025-09-03 13:18:40 -04:00
}
void XModelHighMipBounds::Clear()
{
mMins = QVector3D();
mMaxs = QVector3D();
}