Fixed buffer corruption bugs ! (Yeah !)

Former-commit-id: 3e2c82a786810a160d324f8ccf284f8e505613a0
This commit is contained in:
Lynix
2013-08-23 12:52:52 +02:00
parent 74d396a376
commit fe6816b089
5 changed files with 124 additions and 24 deletions

View File

@@ -17,8 +17,6 @@ class NzHardwareBuffer : public NzAbstractBuffer
NzHardwareBuffer(NzBuffer* parent, nzBufferType type);
~NzHardwareBuffer();
void Bind();
bool Create(unsigned int size, nzBufferUsage usage = nzBufferUsage_Static);
void Destroy();
@@ -29,6 +27,10 @@ class NzHardwareBuffer : public NzAbstractBuffer
void* Map(nzBufferAccess access, unsigned int offset = 0, unsigned int size = 0);
bool Unmap();
// Fonctions OpenGL
void Bind() const;
unsigned int GetOpenGLID() const;
private:
GLuint m_buffer;
nzBufferType m_type;