mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Updated example and test programs to new API.
This commit is contained in:
+1
-3
@@ -89,12 +89,10 @@ static GLboolean open_window(void)
|
||||
{
|
||||
int x, y;
|
||||
|
||||
window_handle = glfwOpenWindow(0, 0, GLFW_WINDOWED);
|
||||
window_handle = glfwOpenWindow(0, 0, GLFW_WINDOWED, "Peter Detector");
|
||||
if (!window_handle)
|
||||
return GL_FALSE;
|
||||
|
||||
glfwSetWindowTitle(window_handle, "Peter Detector");
|
||||
|
||||
glfwGetMousePos(window_handle, &x, &y);
|
||||
printf("Mouse position: %i %i\n", x, y);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user