问题
Im currently using GLFW for window creation and user input. GLFW simply allows us to say:
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
To tell GLFW were not working with OpenGL. It even provides function like
glfwCreateWindowSurface(...)
To automate window surface creation for different platforms.
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?
回答1:
This is not yet integrated into SFML, but there's an open pull request adding/discussing this feature.
来源:https://stackoverflow.com/questions/52963428/using-vulkan-with-sfml