Added glfwPostEmptyEvent.

This commit is contained in:
Camilla Berglund
2014-02-10 18:16:58 +01:00
parent 9309f75704
commit 1ccc23268c
8 changed files with 84 additions and 0 deletions
+21
View File
@@ -1745,6 +1745,10 @@ GLFWAPI void glfwPollEvents(void);
* [window refresh callback](@ref GLFWwindowrefreshfun) to redraw the contents
* of your window when necessary during the operation.
*
* @remarks If no windows exist, this function returns immediately. For
* synchronization of threads in applications that do not create windows, use
* your threading library of choice.
*
* @note This function may only be called from the main thread.
*
* @note This function may not be called from a callback.
@@ -1758,6 +1762,23 @@ GLFWAPI void glfwPollEvents(void);
*/
GLFWAPI void glfwWaitEvents(void);
/*! @brief Posts an empty event to the event queue.
*
* This function posts an empty event from the current thread to the main
* thread event queue, causing @ref glfwWaitEvents to return.
*
* @remarks If no windows exist, this function returns immediately. For
* synchronization of threads in applications that do not create windows, use
* your threading library of choice.
*
* @remarks This function may be called from secondary threads.
*
* @sa glfwWaitEvents
*
* @ingroup window
*/
GLFWAPI void glfwPostEmptyEvent(void);
/*! @brief Returns the value of an input option for the specified window.
*
* @param[in] window The window to query.