2025-08-17 13:14:17 -04:00
|
|
|
#include "xgfxworldvertexdata.h"
|
|
|
|
|
|
|
|
|
|
XGfxWorldVertexData::XGfxWorldVertexData()
|
2025-09-07 23:12:04 -04:00
|
|
|
: XAsset()
|
|
|
|
|
, mVertices()
|
|
|
|
|
, mWorldVertexBuffer()
|
|
|
|
|
{
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-07 23:12:04 -04:00
|
|
|
XGfxWorldVertexData::~XGfxWorldVertexData()
|
|
|
|
|
{
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-07 23:12:04 -04:00
|
|
|
void XGfxWorldVertexData::Clear()
|
|
|
|
|
{
|
|
|
|
|
mVertices.clear();
|
|
|
|
|
mWorldVertexBuffer.Clear();
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-07 23:12:04 -04:00
|
|
|
void XGfxWorldVertexData::ParseData(QDataStream *aStream) {
|
|
|
|
|
if (GetPtr() == -1) {
|
2025-08-17 13:14:17 -04:00
|
|
|
|
2025-09-07 23:12:04 -04:00
|
|
|
qint32 worldVertexPtr;
|
|
|
|
|
*aStream >> worldVertexPtr;
|
|
|
|
|
|
|
|
|
|
mWorldVertexBuffer.ParseData(aStream);
|
|
|
|
|
}
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|