| 75 | } |
| 76 | |
| 77 | void Background::draw(const mat4&, const mat4&) { |
| 78 | background_prog.use(); |
| 79 | |
| 80 | gl_canvas_ref().glEnableVertexAttribArray(0); |
| 81 | gl_canvas_ref().glBindBuffer(GL_ARRAY_BUFFER, background_vbo); |
| 82 | gl_canvas_ref().glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, nullptr); |
| 83 | gl_canvas_ref().glDrawArrays(GL_TRIANGLES, 0, 6); |
| 84 | } |
| 85 | |
| 86 | constexpr int Background::render_index() const { |
| 87 | return -100; |
nothing calls this directly
no test coverage detected