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