Vivid
Loading...
Searching...
No Matches
IndexBuffer.h
1#pragma once
2
3#include "common/types/SmartPointers.h"
4#include "common/types/Types.h"
5
6namespace Vivid
7{
14 {
15 public:
16 unsigned int m_RendererID;
17 unsigned int m_Count;
18
19 public:
20 IndexBuffer() = default;
21 IndexBuffer(Vector<unsigned int>& indices);
23
24 static Ref<IndexBuffer> Create(Vector<unsigned int>& indices);
25
26 void Bind() const;
27
28 void Unbind() const;
29
30 inline unsigned int GetCount() const { return m_Count; }
31 };
32}
Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl....
Definition: IndexBuffer.h:14