2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XGFXWORLDVERTEXDATA_H
|
|
|
|
|
#define XGFXWORLDVERTEXDATA_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xgfxworldvertex.h"
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
#include <QVector>
|
|
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
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
|