








#ifndef XGFXWORLDVERTEXDATA_H
#define XGFXWORLDVERTEXDATA_H

#include "xasset.h"
#include "xgfxworldvertex.h"

class XGfxWorldVertexData : public XAsset
{
public:
    explicit XGfxWorldVertexData();

    void ParseData(QDataStream *aStream) override;

    QVector<XGfxWorldVertex>& GetVertices();
    const QVector<XGfxWorldVertex>& GetVertices() const;
    void SetVertices(const QVector<XGfxWorldVertex>& vertices);

    // Note: D3DVertexBuffer is a placeholder - we need to handle this appropriately
    int GetVertexBufferPtr() const;
    void SetVertexBufferPtr(int ptr);

private:
    QVector<XGfxWorldVertex> mVertices; // Using QVector for automatic memory management
    int mVertexBufferPtr = 0; // Placeholder for D3DVertexBuffer pointer
};

#endif // XGFXWORLDVERTEXDATA_H








