From d2b5fc5b3bc648afffa42375706429685ac63794 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 12 Feb 2024 12:55:11 +0100 Subject: Split rendering into own thread and sync through render action lists --- src/GFX/Window.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/GFX/Window.hpp') diff --git a/src/GFX/Window.hpp b/src/GFX/Window.hpp index ac0efd2..c26b0fd 100644 --- a/src/GFX/Window.hpp +++ b/src/GFX/Window.hpp @@ -16,8 +16,12 @@ public: void on_size_change(void (* callback)(GLFWwindow*, I32, I32)); + void attach() const; + void detach() const; + void close(); - void start_frame(); + void start_render(); + void poll_events(); Vector<2> mouse_delta(); Bool key(I32 key, I32 type) const; -- cgit 1.4.1