XPlor/libs/xassets/xgfxworldvertexdata.cpp
2025-09-10 21:58:26 -04:00

31 lines
534 B
C++

#include "xgfxworldvertexdata.h"
XGfxWorldVertexData::XGfxWorldVertexData()
: XAsset()
, mVertices()
, mWorldVertexBuffer()
{
SetName("GFX World Vertex Data");
}
XGfxWorldVertexData::~XGfxWorldVertexData()
{
}
void XGfxWorldVertexData::Clear()
{
mVertices.clear();
mWorldVertexBuffer.Clear();
}
void XGfxWorldVertexData::ParseData(XDataStream *aStream) {
if (GetPtr() == -1) {
qint32 worldVertexPtr;
*aStream >> worldVertexPtr;
mWorldVertexBuffer.ParseData(aStream);
}
}