mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Documentation work.
This commit is contained in:
parent
2a166c5086
commit
1e9383d039
@ -930,11 +930,15 @@ GLFWAPI const char* glfwErrorString(int error);
|
|||||||
*/
|
*/
|
||||||
GLFWAPI void glfwSetErrorCallback(GLFWerrorfun cbfun);
|
GLFWAPI void glfwSetErrorCallback(GLFWerrorfun cbfun);
|
||||||
|
|
||||||
/*! @ingroup monitor
|
/*! @brief This function will be replaced when the @c multi-monitor branch is
|
||||||
|
* merged.
|
||||||
|
* @ingroup monitor
|
||||||
*/
|
*/
|
||||||
GLFWAPI GLFWvidmode* glfwGetVideoModes(int* count);
|
GLFWAPI GLFWvidmode* glfwGetVideoModes(int* count);
|
||||||
|
|
||||||
/*! @ingroup monitor
|
/*! @brief This function will be replaced when the @c multi-monitor branch is
|
||||||
|
* merged.
|
||||||
|
* @ingroup monitor
|
||||||
*/
|
*/
|
||||||
GLFWAPI void glfwGetDesktopMode(GLFWvidmode* mode);
|
GLFWAPI void glfwGetDesktopMode(GLFWvidmode* mode);
|
||||||
|
|
||||||
@ -1002,14 +1006,13 @@ GLFWAPI void glfwDefaultWindowHints(void);
|
|||||||
* buffers.
|
* buffers.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_STEREO hint specifies whether to use stereoscopic rendering.
|
* The @ref GLFW_STEREO hint specifies whether to use stereoscopic rendering.
|
||||||
* This is a hard constraint.
|
|
||||||
*
|
*
|
||||||
* The @ref GLFW_FSAA_SAMPLES hint specifies the desired number of samples to
|
* The @ref GLFW_FSAA_SAMPLES hint specifies the desired number of samples to
|
||||||
* use for multisampling.
|
* use for multisampling.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_CLIENT_API hint specifies which client API to create the
|
* The @ref GLFW_CLIENT_API hint specifies which client API to create the
|
||||||
* context for. Possible values are @ref GLFW_OPENGL_API and @ref
|
* context for. Possible values are @ref GLFW_OPENGL_API and @ref
|
||||||
* GLFW_OPENGL_ES_API. This is a hard constraint.
|
* GLFW_OPENGL_ES_API.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_OPENGL_VERSION_MAJOR and @ref GLFW_OPENGL_VERSION_MINOR hints
|
* The @ref GLFW_OPENGL_VERSION_MAJOR and @ref GLFW_OPENGL_VERSION_MINOR hints
|
||||||
* specify the OpenGL version that the created context must be compatible with.
|
* specify the OpenGL version that the created context must be compatible with.
|
||||||
@ -1022,15 +1025,14 @@ GLFWAPI void glfwDefaultWindowHints(void);
|
|||||||
* available.
|
* available.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_OPENGL_FORWARD_COMPAT hint specifies whether the OpenGL
|
* The @ref GLFW_OPENGL_FORWARD_COMPAT hint specifies whether the OpenGL
|
||||||
* context should be forward-compatible. This is a hard constraint.
|
* context should be forward-compatible.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_OPENGL_DEBUG_CONTEXT hint specifies whether to create a debug
|
* The @ref GLFW_OPENGL_DEBUG_CONTEXT hint specifies whether to create a debug
|
||||||
* OpenGL context.
|
* OpenGL context.
|
||||||
*
|
*
|
||||||
* The @ref GLFW_OPENGL_PROFILE hint specifies which OpenGL profile to create
|
* The @ref GLFW_OPENGL_PROFILE hint specifies which OpenGL profile to create
|
||||||
* the context for. Possible values are @ref GLFW_OPENGL_NO_PROFILE, @ref
|
* the context for. Possible values are @ref GLFW_OPENGL_NO_PROFILE, @ref
|
||||||
* GLFW_OPENGL_CORE_PROFILE and @ref GLFW_OPENGL_COMPAT_PROFILE. This is
|
* GLFW_OPENGL_CORE_PROFILE and @ref GLFW_OPENGL_COMPAT_PROFILE.
|
||||||
* a hard constraint.
|
|
||||||
*
|
*
|
||||||
* The @ref GLFW_OPENGL_ROBUSTNESS hint specifies the robustness strategy to be
|
* The @ref GLFW_OPENGL_ROBUSTNESS hint specifies the robustness strategy to be
|
||||||
* used by the OpenGL context.
|
* used by the OpenGL context.
|
||||||
@ -1186,7 +1188,8 @@ GLFWAPI void glfwRestoreWindow(GLFWwindow window);
|
|||||||
* @param[in] window The window to make visible.
|
* @param[in] window The window to make visible.
|
||||||
* @ingroup window
|
* @ingroup window
|
||||||
*
|
*
|
||||||
* @remarks If the window is already visible, this function does nothing.
|
* @remarks If the window is already visible or is in fullscreen mode, this
|
||||||
|
* function does nothing.
|
||||||
*
|
*
|
||||||
* @note This function may only be called from the main thread.
|
* @note This function may only be called from the main thread.
|
||||||
*
|
*
|
||||||
@ -1198,7 +1201,8 @@ GLFWAPI void glfwShowWindow(GLFWwindow window);
|
|||||||
* @param[in] window The window to hide.
|
* @param[in] window The window to hide.
|
||||||
* @ingroup window
|
* @ingroup window
|
||||||
*
|
*
|
||||||
* @remarks If the window is already hidden, this function does nothing.
|
* @remarks If the window is already hidden or is in fullscreen mode, this
|
||||||
|
* function does nothing.
|
||||||
*
|
*
|
||||||
* @note This function may only be called from the main thread.
|
* @note This function may only be called from the main thread.
|
||||||
*
|
*
|
||||||
@ -1207,7 +1211,49 @@ GLFWAPI void glfwShowWindow(GLFWwindow window);
|
|||||||
GLFWAPI void glfwHideWindow(GLFWwindow window);
|
GLFWAPI void glfwHideWindow(GLFWwindow window);
|
||||||
|
|
||||||
/*! @brief Returns a property of the specified window.
|
/*! @brief Returns a property of the specified window.
|
||||||
|
* @param[in] window The window to query.
|
||||||
|
* @param[in] param The property whose value to return.
|
||||||
* @ingroup window
|
* @ingroup window
|
||||||
|
*
|
||||||
|
* The @ref GLFW_FOCUSED property indicates whether the window is focused.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_ICONIFIED property indicates whether the window is iconified.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_VISIBLE property indicates whether the window is visible.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_RESIZABLE property indicates whether the window is resizable
|
||||||
|
* by the user.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_CLOSE_REQUESTED property indicates whether the window has been
|
||||||
|
* requested by the user to close.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_REFRESH_RATE property will be replaced when the @c
|
||||||
|
* multi-monitor branch is merged.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_POSITION_X and @ref GLFW_POSITION_Y properties indicate the
|
||||||
|
* screen position, in pixels, of the upper-left corner of the window's client
|
||||||
|
* area.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_CLIENT_API property indicates the client API provided by the
|
||||||
|
* window's context.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_OPENGL_VERSION_MAJOR, @ref GLFW_OPENGL_VERSION_MINOR and @ref
|
||||||
|
* GLFW_OPENGL_REVISION properties indicate the API version of the window's
|
||||||
|
* context.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_OPENGL_FORWARD_COMPAT property indicates whether an OpenGL
|
||||||
|
* context is forward-compatible.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_OPENGL_DEBUG_CONTEXT property indicates whether the
|
||||||
|
* corresponding window hint was used when the window was created.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_OPENGL_PROFILE property indicates the profile used by the
|
||||||
|
* OpenGL context, or @ref GLFW_OPENGL_NO_PROFILE if the context is for another
|
||||||
|
* client API than OpenGL.
|
||||||
|
*
|
||||||
|
* The @ref GLFW_OPENGL_ROBUSTNESS property indicates the robustness strategy
|
||||||
|
* used by the OpenGL context, or @ref GLFW_OPENGL_NO_ROBUSTNESS if robustness
|
||||||
|
* is not used.
|
||||||
*/
|
*/
|
||||||
GLFWAPI int glfwGetWindowParam(GLFWwindow window, int param);
|
GLFWAPI int glfwGetWindowParam(GLFWwindow window, int param);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user