Update XGfxWorldVertexData header
This commit is contained in:
parent
d525f9bee3
commit
00618f8081
@ -2,6 +2,7 @@
|
|||||||
#define XGFXWORLDVERTEXDATA_H
|
#define XGFXWORLDVERTEXDATA_H
|
||||||
|
|
||||||
#include "xasset.h"
|
#include "xasset.h"
|
||||||
|
#include "xd3dvertexbuffer.h"
|
||||||
#include "xgfxworldvertex.h"
|
#include "xgfxworldvertex.h"
|
||||||
|
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
@ -10,20 +11,14 @@ class XGfxWorldVertexData : public XAsset
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit XGfxWorldVertexData();
|
explicit XGfxWorldVertexData();
|
||||||
|
~XGfxWorldVertexData();
|
||||||
|
|
||||||
void ParseData(QDataStream *aStream) override;
|
void ParseData(QDataStream *aStream) override;
|
||||||
|
void Clear() 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:
|
private:
|
||||||
QVector<XGfxWorldVertex> mVertices; // Using QVector for automatic memory management
|
QVector<XGfxWorldVertex> mVertices;
|
||||||
int mVertexBufferPtr = 0; // Placeholder for D3DVertexBuffer pointer
|
XD3DVertexBuffer mWorldVertexBuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // XGFXWORLDVERTEXDATA_H
|
#endif // XGFXWORLDVERTEXDATA_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user