35 VizWindow(
const std::string& title,
int width,
int height);
47 void run(
const std::function<
void()>& draw_frame);
55 void run(
const std::function<
void()>& draw_frame,
const std::function<
void(
int,
int)>& after_render);
Owns a GLFW window, OpenGL3 context, and ImGui/ImPlot context for the lifetime of one demo app....
Definition window.hpp:27
VizWindow & operator=(const VizWindow &)=delete
void run(const std::function< void()> &draw_frame)
Runs the main loop, calling draw_frame() once per frame between ImGui::NewFrame()/ImGui::Render(),...
VizWindow(const VizWindow &)=delete
void run(const std::function< void()> &draw_frame, const std::function< void(int, int)> &after_render)
Same as run(draw_frame), plus after_render(framebuffer_width, framebuffer_height) called once per fra...
void request_close()
Asks the main loop to exit after the current frame (e.g. a scripted/screenshot run).
VizWindow(const std::string &title, int width, int height)
Creates the GLFW window, OpenGL3 context, and ImGui/ImPlot contexts.
Definition acquisition_functions.hpp:16