#pragma once #include "screen.hpp" #include "framebuffer.hpp" #include "text.hpp" #include "document.hpp" #include #include struct Engine { Deck& deck; std::shared_ptr framebuffer = nullptr; std::shared_ptr screen = nullptr; std::shared_ptr text = nullptr; int at_slide = 0; float mouse_x = 0.0f; float mouse_y = 0.0f; GLFWwindow* window = nullptr; void render(); void change_slide(int dir); void mouse(float x, float y) { mouse_x = x; mouse_y = y; } void update(); void quit(); void init(); bool active(); };