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