summaryrefslogtreecommitdiffstats
path: root/Project/VertexArray.h
blob: 2114285a294451be7494a33794423ad916111db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef VERTEXARRAY_H
#define VERTEXARRAY_H

#include "VertexBuffer.h"
class VertexBufferLayout;

class VertexArray
{
public:
    VertexArray();
    ~VertexArray();

    void AddBuffer(const VertexBuffer& vb, const VertexBufferLayout& layout);
    void UpdateBuffer(const VertexBuffer& vb, const void* newVBData, const unsigned int& newVBSize);

    void Bind() const;
    void Unbind() const;
private:
    unsigned int m_rendererID;
};


#endif // VERTEXARRAY_H