16 lines
268 B
C++
16 lines
268 B
C++
#ifndef INCLUDE_MESH_INSTANCE_IMPLEMENTATION
|
|
#error Never include this file directly include 'mesh_handle.hpp'
|
|
#endif
|
|
|
|
namespace zgl
|
|
{
|
|
inline void mesh_handle::bind() const
|
|
{
|
|
glBindVertexArray(vao_id);
|
|
}
|
|
|
|
inline void mesh_handle::unbind()
|
|
{
|
|
glBindVertexArray(0);
|
|
}
|
|
} |