34 GLuint render_buffer_id;
36 GLenum channel_type = GL_UNSIGNED_BYTE;
42 static int tot_memory;
45 FrameBuffer(
int width,
int height, GLenum format = GL_RGBA);
49 this->texture_id = other.texture_id;
50 this->render_buffer_id = other.render_buffer_id;
51 this->color_format = other.color_format;
52 this->width = other.width;
53 this->height = other.height;
54 this->target = other.target;
56 this->memory = other.memory;
63 this->texture_id = other.texture_id;
64 this->render_buffer_id = other.render_buffer_id;
65 this->color_format = other.color_format;
66 this->width = other.width;
67 this->height = other.height;
68 this->target = other.target;
70 this->memory = other.memory;
80 void bind()
const override;
81 void unbind()
const override;
85 void rescale(
int width,
int height);
86 void set_color_format(GLenum color_format);