mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 04:50:42 +00:00
27 lines
635 B
C
27 lines
635 B
C
|
#pragma once
|
||
|
|
||
|
#include "hwrenderer/data/buffers.h"
|
||
|
#include "i_modelvertexbuffer.h"
|
||
|
|
||
|
class FModelRenderer;
|
||
|
|
||
|
class FModelVertexBuffer : public IModelVertexBuffer
|
||
|
{
|
||
|
IVertexBuffer *mVertexBuffer;
|
||
|
IIndexBuffer *mIndexBuffer;
|
||
|
|
||
|
public:
|
||
|
|
||
|
FModelVertexBuffer(bool needindex, bool singleframe);
|
||
|
~FModelVertexBuffer();
|
||
|
|
||
|
FModelVertex *LockVertexBuffer(unsigned int size) override;
|
||
|
void UnlockVertexBuffer() override;
|
||
|
|
||
|
unsigned int *LockIndexBuffer(unsigned int size) override;
|
||
|
void UnlockIndexBuffer() override;
|
||
|
|
||
|
IVertexBuffer* vertexBuffer() const { return mVertexBuffer; }
|
||
|
IIndexBuffer* indexBuffer() const { return mIndexBuffer; }
|
||
|
};
|