| 113 | : Component{game_object, gl_canvas}, buff_prog_{*gl_canvas} {} |
| 114 | |
| 115 | Buffer::~Buffer() noexcept { |
| 116 | if (const auto canvas = gl_canvas()) { |
| 117 | const auto num_textures = num_textures_x * num_textures_y; |
| 118 | canvas->glDeleteTextures(num_textures, buff_tex.data()); |
| 119 | canvas->glDeleteBuffers(1, &vbo_); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | bool Buffer::buffer_update() { |
| 124 | const auto num_textures = num_textures_x * num_textures_y; |
nothing calls this directly
no test coverage detected