|
|
|
@ -63,8 +63,7 @@ enum GlfwClientApi
|
|
|
|
|
{
|
|
|
|
|
GlfwClientApi_Unknown,
|
|
|
|
|
GlfwClientApi_OpenGL,
|
|
|
|
|
GlfwClientApi_Vulkan,
|
|
|
|
|
GlfwClientApi_WebGPU
|
|
|
|
|
GlfwClientApi_Vulkan
|
|
|
|
|
};
|
|
|
|
|
static GLFWwindow* g_Window = NULL; // Main window
|
|
|
|
|
static GlfwClientApi g_ClientApi = GlfwClientApi_Unknown;
|
|
|
|
@ -232,9 +231,9 @@ bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks)
|
|
|
|
|
return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Vulkan);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool ImGui_ImplGlfw_InitForWebGPU(GLFWwindow* window, bool install_callbacks)
|
|
|
|
|
bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks)
|
|
|
|
|
{
|
|
|
|
|
return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_WebGPU);
|
|
|
|
|
return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Unknown);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ImGui_ImplGlfw_Shutdown()
|
|
|
|
|