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