glfwGetGammaRamp

Returns the current gamma ramp for the specified monitor.

This function returns the current gamma ramp of the specified monitor.

extern (C) @nogc nothrow __gshared
glfwGetGammaRamp

Parameters

monitor GLFWmonitor*

The monitor to query.

Return Value

Type: const(GLFWgammaramp)*

The current gamma ramp, or null if an error occurred.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

@remark @wayland Gamma handling is a privileged protocol, this function will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR while returning null.

Pointer lifetime

The returned structure and its arrays are allocated and freed by GLFW. You should not free them yourself. They are valid until the specified monitor is disconnected, this function is called again for that monitor or the library is terminated.

Thread Safety

This function must only be called from the main thread.

@sa @ref monitor_gamma

Meta

Since

Added in version 3.0.

Ingroup: monitor