Initial sources
This commit is contained in:
28
engine/render/vertexbuffer.h
Normal file
28
engine/render/vertexbuffer.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef VERTEXOBJECT_H
|
||||
#define VERTEXOBJECT_H
|
||||
|
||||
#include "render/render_shared.h"
|
||||
#include "render/gl_shared.h"
|
||||
|
||||
class RenderDevice;
|
||||
|
||||
class VertexBuffer
|
||||
{
|
||||
friend class RenderDevice;
|
||||
public:
|
||||
~VertexBuffer();
|
||||
|
||||
void Bind();
|
||||
|
||||
void* MapBuffer(BufferAccess access);
|
||||
void UnmapBuffer();
|
||||
|
||||
void UpdateBuffer(void* data, size_t size);
|
||||
|
||||
private:
|
||||
VertexBuffer(void* data, size_t size, bool isStream = false);
|
||||
|
||||
GLuint m_buffer;
|
||||
};
|
||||
|
||||
#endif // !VERTEXOBJECT_H
|
||||
Reference in New Issue
Block a user