42 if (!glfw.
init(
"BlosSOM", input_handler.
input)) {
43 std::cout <<
"GLFW initialization failed." << std::endl;
48 std::cout <<
"GLAD initialization failed." << std::endl;
53 std::cout <<
"Dear ImGui initialization failed." << std::endl;
57 if (!renderer.
init()) {
58 std::cout <<
"Renderer initialization failed." << std::endl;
66 input_handler.
update(view, renderer, state);
84 input_handler.
reset();
Wrapper of the GLAD library.
Wrapper of the Glfw library.
bool init(const std::string &window_name, InputData &input)
bool window_should_close()
void end_frame(FrameStats &fs)
void render(int w, int h, State &state)
Render UI.
bool init(GLFWwindow *window)
Initialize ImGui and load fonts.
Handles rendering of the graph and scatter plot and handles IO.
void render(const glm::vec2 &fb_size, const State &state, const View &view)
Render graph and scatterplot.
A small utility class that manages the viewport coordinates, together with the virtual "camera" posit...
void update(float dt, int w, int h)
Move the current position and zoom a bit closer to the target position and zoom.
Storage of data of used algorithms and input events.
void update(float time, bool vert_pressed, int vert_ind)
Performs simulation steps of all active algorithms and updates data according to the user interaction...
Handler for frametime computation.
void tick()
Counts frametime and sets last_tick variable to current time.
float frametime
Duration of the last frame (in seconds).