15 lines
316 B
C++
15 lines
316 B
C++
#ifndef INCLUDE_INDEX_BUFFER_HANDLE_IMPLEMENTATION
|
|
#error Never include this file directly include 'index_buffer_handle.hpp'
|
|
#endif
|
|
|
|
|
|
void zgl::index_buffer_handle::bind() const
|
|
{
|
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_id);
|
|
}
|
|
|
|
void zgl::index_buffer_handle::unbind()
|
|
{
|
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
|
}
|