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