Vivid
Loading...
Searching...
No Matches
VertexArray.h
1#pragma once
2
3#include "IndexBuffer.h"
4#include "VertexBuffer.h"
5#include "VertexBufferLayout.h"
6
7namespace Vivid
8{
15 {
16 private:
17 unsigned int m_RendererID;
18
19 public:
22
23 static Ref<VertexArray> Create();
24
25 void AddVertexBuffer(const VertexBuffer& vb, const VertexBufferLayout& layout, const Vector<Vertex>& vertices);
26 void AddIndexBuffer(const IndexBuffer& ib);
27
28 void Bind() const;
29 void Unbind() const;
30 };
31}
Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl....
Definition: IndexBuffer.h:14
A class for the VertexArray.
Definition: VertexArray.h:15
A class for the VertexBuffer.
Definition: VertexBuffer.h:31