问题描述
我目前使用 GLFW 进行窗口创建和用户输入.GLFW 只是让我们说:
Im currently using GLFW for window creation and user input. GLFW simply allows us to say:
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
告诉 GLFW 不使用 OpenGL.它甚至提供了像
To tell GLFW were not working with OpenGL. It even provides function like
glfwCreateWindowSurface(...)
为不同平台自动创建窗口表面.
To automate window surface creation for different platforms.
有什么办法可以用 SFML 做类似的事情吗?我在他们的网站上找不到任何有关它的信息,所以我认为答案是否定的.但也许有某种黑客行为,或者不建议这样做?
Is there any way I can do something similar with SFML? I could not find any information about it on their website, so i assume the answer is no. But maybe there is some kind of hack, or is this not advised?
推荐答案
这还没有集成到 SFML 中,但是 有一个开放的拉取请求添加/讨论此功能.
This is not yet integrated into SFML, but there's an open pull request adding/discussing this feature.
这篇关于将 Vulkan 与 SFML 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!