|
@@ -68,12 +68,6 @@ static void error_callback(int error, const char* description)
|
|
|
fprintf(stderr, "Error: %s\n", description);
|
|
|
}
|
|
|
|
|
|
-void mouse_button_callback(GLFWwindow* window, int button, int action, int mods)
|
|
|
-{
|
|
|
- if (button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS)
|
|
|
- glfwDragWindow(window);
|
|
|
-}
|
|
|
-
|
|
|
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
|
|
{
|
|
|
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
|
|
@@ -102,7 +96,6 @@ int main(void)
|
|
|
}
|
|
|
|
|
|
glfwSetKeyCallback(window, key_callback);
|
|
|
- glfwSetMouseButtonCallback(window, mouse_button_callback);
|
|
|
|
|
|
glfwMakeContextCurrent(window);
|
|
|
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|