XPlor/libs/xassets/xgfxworldvertexdata.cpp

31 lines
534 B
C++
Raw Normal View History

2025-08-17 13:14:17 -04:00
#include "xgfxworldvertexdata.h"
XGfxWorldVertexData::XGfxWorldVertexData()
: XAsset()
, mVertices()
, mWorldVertexBuffer()
{
2025-09-10 21:58:26 -04:00
SetName("GFX World Vertex Data");
2025-08-17 13:14:17 -04:00
}
XGfxWorldVertexData::~XGfxWorldVertexData()
{
2025-08-17 13:14:17 -04:00
}
void XGfxWorldVertexData::Clear()
{
mVertices.clear();
mWorldVertexBuffer.Clear();
2025-08-17 13:14:17 -04:00
}
2025-09-10 21:58:26 -04:00
void XGfxWorldVertexData::ParseData(XDataStream *aStream) {
if (GetPtr() == -1) {
2025-08-17 13:14:17 -04:00
qint32 worldVertexPtr;
*aStream >> worldVertexPtr;
mWorldVertexBuffer.ParseData(aStream);
}
2025-08-17 13:14:17 -04:00
}