...
This commit is contained in:
14
source/opengl/handles/vertex_buffer_handle.ipp
Normal file
14
source/opengl/handles/vertex_buffer_handle.ipp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user