3 #include "IndexSlot.hpp"
4 #include "GLException.hpp"
5 #include "GLObject.hpp"
6 #include "VertexSeq.fpp"
7 #include "../config/BaseProxy.hpp"
15 IndexSet(
int indexCount) : m_buffer(
nullptr), m_indexCount(indexCount) {}
18 if(index >= m_indexCount) {
19 logError(
"[IndexSet] Index <", index,
"> out of bounds!");
20 throw GLException(
"[IndexSet] Index out of bounds");
22 return std::move(
IndexSlot(*(m_buffer + index)));
26 unsigned int* m_buffer;
Definition: IndexSlot.hpp:10
Definition: HotVertexSeq.hpp:20
Definition: GLException.hpp:7
Definition: GLObject.hpp:37
Definition: IndexSet.hpp:13