Minor improvements to Pipeline and Window

This commit is contained in:
Thraix
2024-10-01 19:46:56 +02:00
parent 7cfb38163b
commit b256b90abb
4 changed files with 21 additions and 0 deletions
+5
View File
@@ -63,6 +63,11 @@ namespace Copium
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
}
bool Window::IsMouseGrabbed() const
{
return glfwGetInputMode(window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED;
}
void Window::InitializeWindow(const std::string& windowName, int width, int height, WindowMode mode)
{
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);