Lines Matching defs:window

54 void reshape( GLFWwindow* window, int w, int h );
55 void key_callback( GLFWwindow* window, int key, int scancode, int action, int mods );
56 void mouse_button_callback( GLFWwindow* window, int button, int action, int mods );
57 void cursor_position_callback( GLFWwindow* window, double x, double y );
217 void reshape( GLFWwindow* window, int w, int h )
240 void key_callback( GLFWwindow* window, int key, int scancode, int action, int mods )
246 glfwSetWindowShouldClose(window, GLFW_TRUE);
250 if (glfwGetWindowMonitor(window))
252 glfwSetWindowMonitor(window, NULL,
262 glfwGetWindowPos(window, &windowed_xpos, &windowed_ypos);
263 glfwGetWindowSize(window, &windowed_width, &windowed_height);
264 glfwSetWindowMonitor(window, monitor, 0, 0, mode->width, mode->height, mode->refreshRate);
276 void mouse_button_callback( GLFWwindow* window, int button, int action, int mods )
292 void cursor_position_callback( GLFWwindow* window, double x, double y )
626 GLFWwindow* window;
632 window = glfwCreateWindow( 400, 400, "Boing (classic Amiga demo)", NULL, NULL );
633 if (!window)
639 glfwSetWindowAspectRatio(window, 1, 1);
641 glfwSetFramebufferSizeCallback(window, reshape);
642 glfwSetKeyCallback(window, key_callback);
643 glfwSetMouseButtonCallback(window, mouse_button_callback);
644 glfwSetCursorPosCallback(window, cursor_position_callback);
646 glfwMakeContextCurrent(window);
650 glfwGetFramebufferSize(window, &width, &height);
651 reshape(window, width, height);
669 glfwSwapBuffers(window);
673 if (glfwWindowShouldClose(window))