#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);
    }
}
