Updated xsurfacevertexinfo
This commit is contained in:
parent
6e73c2d50c
commit
a1a54665d9
@ -2,8 +2,7 @@
|
||||
|
||||
XSurfaceVertexInfo::XSurfaceVertexInfo()
|
||||
: XAsset()
|
||||
, mVertCount()
|
||||
, mVertsBlendPtr()
|
||||
, mVertCount(4)
|
||||
, mVertsBlend()
|
||||
{
|
||||
|
||||
@ -11,7 +10,21 @@ XSurfaceVertexInfo::XSurfaceVertexInfo()
|
||||
|
||||
void XSurfaceVertexInfo::ParseData(QDataStream *aStream)
|
||||
{
|
||||
if (GetPtr() == -1)
|
||||
{
|
||||
qint32 vertBlendPtr;
|
||||
*aStream
|
||||
>> mVertCount[0]
|
||||
>> mVertCount[1]
|
||||
>> mVertCount[2]
|
||||
>> mVertCount[3]
|
||||
>> vertBlendPtr;
|
||||
|
||||
if (vertBlendPtr == -1)
|
||||
{
|
||||
aStream->readRawData(mVertsBlend.data(), 2 * (mVertCount[0] + 3 * mVertCount[1] + 5 * mVertCount[2] + 7 * mVertCount[3]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void XSurfaceVertexInfo::Clear()
|
||||
|
||||
@ -12,9 +12,8 @@ public:
|
||||
void Clear() override;
|
||||
|
||||
private:
|
||||
qint16 mVertCount[4];
|
||||
qint32 mVertsBlendPtr;
|
||||
quint32 mVertsBlend;
|
||||
QVector<qint16> mVertCount;
|
||||
QByteArray mVertsBlend;
|
||||
};
|
||||
|
||||
#endif // XSURFACEVERTEXINFO_H
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user