]> gitweb.factorcode.org Git - factor.git/blob - extra/glfw/glfw.factor
glfw: adding glfw-yield
[factor.git] / extra / glfw / glfw.factor
1 ! Copyright (C) 2023 John Benediktsson.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: glfw.ffi threads ;
4 IN: glfw
5
6 : glfw-yield ( -- )
7     glfwGetCurrentContext
8     f glfwMakeContextCurrent
9     yield
10     glfwMakeContextCurrent ;