MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / draw_background

Method draw_background

source/matplot/backend/opengl_embed.cpp:241–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 }
240
241 void opengl_embed::draw_background(const std::array<float, 4> &color) {
242 glClearColor(color[1], color[2], color[3], 1.f - color[0]);
243 glClear(GL_COLOR_BUFFER_BIT);
244 }
245
246 void opengl_embed::show(class matplot::figure_type *f) {
247 backend_interface::show(f);

Callers 1

send_draw_commandsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected