gpt4 book ai didi

opengl - 终止 glfw 并关闭任何打开的窗口是否会破坏使用所述窗口的任何 opengl 上下文?

转载 作者:行者123 更新时间:2023-12-04 08:56:43 28 4
gpt4 key购买 nike

是否调用:

glfwTerminate();
glfwDestroyWindow(windowID);
终止任何使用现在关闭的窗口的 glfw 上下文?

最佳答案

是的:

Window objects: The GLFWwindow object encapsulates both a window and a context. They are created with glfwCreateWindow and destroyed with glfwDestroyWindow, or glfwTerminate, if any remain.

关于opengl - 终止 glfw 并关闭任何打开的窗口是否会破坏使用所述窗口的任何 opengl 上下文?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63785674/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com