From ab69a4f171ca48d6d53d81cfd52a42108da1c08b Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Fri, 13 Oct 2023 10:21:51 -0700 Subject: [PATCH] glfw: adding glfw-yield --- extra/glfw/glfw.factor | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 extra/glfw/glfw.factor diff --git a/extra/glfw/glfw.factor b/extra/glfw/glfw.factor new file mode 100644 index 0000000000..098fc4a44f --- /dev/null +++ b/extra/glfw/glfw.factor @@ -0,0 +1,10 @@ +! Copyright (C) 2023 John Benediktsson. +! See https://factorcode.org/license.txt for BSD license. +USING: glfw.ffi threads ; +IN: glfw + +: glfw-yield ( -- ) + glfwGetCurrentContext + f glfwMakeContextCurrent + yield + glfwMakeContextCurrent ; -- 2.34.1