From 3ec2925da417c2401691c37d0cd83eb2916a8f64 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 25 Apr 2013 18:03:15 +0200 Subject: [PATCH] Added note on coordinate truncation. --- include/GL/glfw3.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index d4c72d8c..791ae55f 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -1758,6 +1758,10 @@ GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); * the cursor position is unbounded and limited only by the minimum and maximum * values of a `double`. * + * The coordinate can be converted to their integer equivalents with the + * `floor` function. Casting directly to an integer type works for positive + * coordinates, but fails for negative ones. + * * @param[in] window The desired window. * @param[out] xpos The cursor x-coordinate, relative to the left edge of the * client area, or `NULL`.