MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / buffer_update

Method buffer_update

src/visualization/components/buffer.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123bool Buffer::buffer_update() {
124 const auto num_textures = num_textures_x * num_textures_y;
125 gl_canvas_ref().glDeleteTextures(num_textures, buff_tex.data());
126
127 if (!create_shader_program()) {
128 return false;
129 }
130 setup_gl_buffer();
131 return true;
132}
133
134void Buffer::get_pixel_info(std::stringstream& message,
135 const int x,

Callers

nothing calls this directly

Calls 2

glDeleteTexturesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected