7/24/2023 0 Comments Gamma control win8![]() The original gamma ramp for that monitor is saved by GLFW the first time this function is called and is restored by glfwTerminate. This function sets the current gamma ramp for the specified monitor. GLFW 3: Changed to return an array of modes for a specific monitor. See also Video modes glfwGetVideoMode Since Added in version 1.0. Thread safety This function must only be called from the main thread. It is valid until the specified monitor is disconnected, this function is called again for that monitor or the library is terminated. Pointer lifetime The returned array is allocated and freed by GLFW. Errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR. Returns An array of video modes, or NULL if an error occurred. This is set to zero if an error occurred. Where to store the number of video modes in the returned array. The returned array is sorted in ascending order, first by color bit depth (the sum of all channel depths), then by resolution area (the product of width and height), then resolution width and finally by refresh rate. This function returns an array of all video modes supported by the specified monitor. See also Content scale glfwGetWindowContentScale Since Added in version 3.3. Where to store the y-axis content scale, or NULL.Įrrors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR. Where to store the x-axis content scale, or NULL. It may be very different from the raw DPI calculated from the physical size and current resolution. The content scale may depend on both the monitor resolution and pixel density and on user settings. This relies on the system DPI and scaling settings being somewhat correct. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This is especially important for text and any UI elements. The content scale is the ratio between the current DPI and the platform's default DPI. This function retrieves the content scale for the specified monitor. See also Work area Since Added in version 3.3. ![]() ![]() Where to store the monitor height, or NULL.Įrrors Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR. Where to store the monitor width, or NULL. Where to store the monitor y-coordinate, or NULL. Where to store the monitor x-coordinate, or NULL. If an error occurs, all non- NULL position and size arguments will be set to zero. If no task bar exists then the work area is the monitor resolution in screen coordinates.Īny or all of the position and size arguments may be NULL. The work area is defined as the area of the monitor not occluded by the operating system task bar where present. ![]() This function returns the position, in screen coordinates, of the upper-left corner of the work area of the specified monitor along with the work area size in screen coordinates. Sets the current gamma ramp for the specified monitor. GlfwSetGammaRamp ( GLFWmonitor *monitor, const GLFWgammaramp *ramp) Returns the current gamma ramp for the specified monitor. Generates a gamma ramp and sets it for the specified monitor. GlfwSetGamma ( GLFWmonitor *monitor, float gamma) Returns the current mode of the specified monitor. Returns the available video modes for the specified monitor. GlfwGetVideoModes ( GLFWmonitor *monitor, int *count) GlfwSetMonitorCallback ( GLFWmonitorfun callback) Returns the user pointer of the specified monitor. ![]() GlfwGetMonitorUserPointer ( GLFWmonitor *monitor) Sets the user pointer of the specified monitor. GlfwSetMonitorUserPointer ( GLFWmonitor *monitor, void *pointer) Returns the name of the specified monitor. GlfwGetMonitorName ( GLFWmonitor *monitor) Retrieves the content scale for the specified monitor. GlfwGetMonitorContentScale ( GLFWmonitor *monitor, float *xscale, float *yscale) Returns the physical size of the monitor. GlfwGetMonitorPhysicalSize ( GLFWmonitor *monitor, int *widthMM, int *heightMM) GlfwGetMonitorWorkarea ( GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height) Returns the position of the monitor's viewport on the virtual screen. GlfwGetMonitorPos ( GLFWmonitor *monitor, int *xpos, int *ypos) Returns the currently connected monitors. The function pointer type for monitor configuration callbacks. GLFWmonitorfun) ( GLFWmonitor *monitor, int event) For more task-oriented information, see the Monitor guide. This is the reference documentation for monitor related functions and types. ![]()
0 Comments
Leave a Reply. |