Add a loop tick callback

This commit is contained in:
Kovid Goyal
2019-02-26 10:29:46 +05:30
parent 1902d8bb19
commit d593ccba2f
8 changed files with 54 additions and 8 deletions

3
kitty/glfw-wrapper.c generated
View File

@@ -23,6 +23,9 @@ load_glfw(const char* path) {
*(void **) (&glfwStopMainLoop_impl) = dlsym(handle, "glfwStopMainLoop");
if (glfwStopMainLoop_impl == NULL) fail("Failed to load glfw function glfwStopMainLoop with error: %s", dlerror());
*(void **) (&glfwRequestTickCallback_impl) = dlsym(handle, "glfwRequestTickCallback");
if (glfwRequestTickCallback_impl == NULL) fail("Failed to load glfw function glfwRequestTickCallback with error: %s", dlerror());
*(void **) (&glfwAddTimer_impl) = dlsym(handle, "glfwAddTimer");
if (glfwAddTimer_impl == NULL) fail("Failed to load glfw function glfwAddTimer with error: %s", dlerror());