7 #include <gls/headercheck.hpp>
8 #include <gls/errorcheck.hpp>
9 #include <gls/objects/buffer.hpp>
10 #include <gls/objects/texture.hpp>
20 template<GLenum InternalFormat>
28 check_gl_error( glTexBuffer( GL_TEXTURE_BUFFER, InternalFormat,
buffer::name() ) );
GLuint name() const
Retrieve the OpenGL name of this texture.
Definition: texture.hpp:47
GLuint texture_name() const
Retrieve the OpenGL name of the texture.
Definition: buffertexture.hpp:48
void data(T data_size, const GLvoid *data_ptr)
Allocate storage and upload data.
Definition: buffer.hpp:112
Class encapsulating an OpenGL buffer object.
Definition: buffer.hpp:27
GLuint name() const
Retrieve the OpenGL name of this buffer.
Definition: buffer.hpp:35
void bind()
Bind this buffer texture.
Definition: buffertexture.hpp:59
Class encapsulating an OpenGL buffer object.
Definition: buffertexture.hpp:21
GLuint buffer_name() const
Retrieve the OpenGL name of the buffer.
Definition: buffertexture.hpp:38
static void unbind()
Unbind the current texture from the target.
Definition: texture.hpp:99
void bind()
Bind this texture to its target.
Definition: texture.hpp:88
static void unbind()
Unbind the current buffer texture.
Definition: buffertexture.hpp:67
Definition: buffer.hpp:12
Class encapsulating an OpenGL texture object.
Definition: texture.hpp:26