XPlor/libs/xassets/xmaterialinfo.cpp

43 lines
661 B
C++
Raw Normal View History

2025-09-05 18:35:17 -04:00
#include "xmaterialinfo.h"
2025-09-03 13:15:04 -04:00
2025-09-05 18:35:17 -04:00
XMaterialInfo::XMaterialInfo()
2025-09-03 13:15:04 -04:00
: XAsset()
2025-09-07 23:16:04 -04:00
, mName()
2025-09-05 18:35:17 -04:00
, mGameFlags(0)
, mSortKey(0)
, mTextureAtlasRowCount(0)
, mTextureAtlasColumnCount(0)
, mDrawSurf()
, mSurfaceTypeBits(0)
2025-09-03 13:15:04 -04:00
{
2025-09-05 18:35:17 -04:00
2025-09-03 13:15:04 -04:00
}
2025-09-05 18:35:17 -04:00
XMaterialInfo::~XMaterialInfo()
2025-09-03 13:15:04 -04:00
{
2025-09-05 18:35:17 -04:00
2025-09-03 13:15:04 -04:00
}
2025-09-05 18:35:17 -04:00
void XMaterialInfo::ParseData(QDataStream *aStream)
2025-09-03 13:15:04 -04:00
{
2025-09-07 23:16:04 -04:00
mName.ParsePtr(aStream, false);
2025-09-05 18:35:17 -04:00
2025-09-07 23:16:04 -04:00
*aStream
>> mGameFlags
>> mSortKey
>> mTextureAtlasRowCount
>> mTextureAtlasColumnCount;
mDrawSurf.ParseData(aStream);
*aStream >> mSurfaceTypeBits;
aStream->skipRawData(4);
mName.ParseData(aStream);
2025-09-05 18:35:17 -04:00
}
void XMaterialInfo::Clear()
{
2025-09-03 13:15:04 -04:00
}