7 #include <gls/headercheck.hpp>
8 #include <gls/errorcheck.hpp>
20 template<
void (*Generator)(GLsizei, GLu
int*),
void (*Deleter)(GLsizei, const GLu
int*)>
28 check_gl_error( Generator( 1, &m_name ) );
36 check_gl_error( Deleter( 1, &m_name ) );
48 std::swap( m_name, other.m_name );
59 std::swap( m_name, other.m_name );
67 object(
const object& ) =
delete;
GLuint name() const
Retrieve the OpenGL name of this buffer.
Definition: object.hpp:80
object()
Default constructor.
Definition: object.hpp:27
~object()
Default destructor.
Definition: object.hpp:35
object & operator=(object &&other)
Move assignment.
Definition: object.hpp:58
object(object &&other)
Move constructor.
Definition: object.hpp:45
A RAII wrapper around any OpenGL object.
Definition: object.hpp:21
Definition: buffer.hpp:12