92 void copy_data(GLsizeiptr size,
const void *data, GLenum usage)
96 void copy_vertices(GLsizeiptr size,
const void *data, GLenum usage)
99 void copy_indices(GLsizeiptr size,
const void *data, GLenum usage)
107 void rescale(
int width,
int height);
Buffer wrapper around OpenGL buffer objects.
~framebuffer()
Destructor Deletes the framebuffer and its texture.
GLuint texture_id
Itexture ID.
void destroy()
Delete the framebuffer and its texture.
void unbind()
Unbind the framebuffer.
GLuint render_buffer_id
Render Buffer ID.
void set_format(GLenum format)
Set the format of the framebuffer.
GLenum format
Format of the framebuffer Default is GL_RGBA.
void rescale(int width, int height)
Rescale the framebuffer.
void bind()
Bind the framebuffer.
framebuffer()
Empty constructor Does nothing.