Add a callback glfw can use to request text rendering

This commit is contained in:
Kovid Goyal
2021-04-01 08:22:06 +05:30
parent f3665ddfab
commit e92ed67021
5 changed files with 18 additions and 0 deletions

3
kitty/glfw-wrapper.c generated
View File

@@ -33,6 +33,9 @@ load_glfw(const char* path) {
*(void **) (&glfwRemoveTimer_impl) = dlsym(handle, "glfwRemoveTimer");
if (glfwRemoveTimer_impl == NULL) fail("Failed to load glfw function glfwRemoveTimer with error: %s", dlerror());
*(void **) (&glfwSetDrawTextFunction_impl) = dlsym(handle, "glfwSetDrawTextFunction");
if (glfwSetDrawTextFunction_impl == NULL) fail("Failed to load glfw function glfwSetDrawTextFunction with error: %s", dlerror());
*(void **) (&glfwTerminate_impl) = dlsym(handle, "glfwTerminate");
if (glfwTerminate_impl == NULL) fail("Failed to load glfw function glfwTerminate with error: %s", dlerror());