Files
Z3D/source/opengl/handles/vertex_buffer_handle.ipp
2025-03-23 21:11:22 +01:00

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);
}