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

Method draw

src/visualization/components/background.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void 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
86constexpr int Background::render_index() const {
87 return -100;

Callers

nothing calls this directly

Calls 5

useMethod · 0.80
glBindBufferMethod · 0.80
glVertexAttribPointerMethod · 0.80
glDrawArraysMethod · 0.80

Tested by

no test coverage detected