glfwGetWindowOpacity

Returns the opacity of the whole window.

This function returns the opacity of the window, including any decorations.

The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque. If the system does not support whole window transparency, this function always returns one.

The initial opacity value for newly created windows is one.

extern (C) @nogc nothrow __gshared
float
glfwGetWindowOpacity

Parameters

window GLFWwindow*

The window to query.

Return Value

Type: float

The opacity value of the specified window.

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

Thread Safety

This function must only be called from the main thread.

@sa @ref window_transparency @sa @ref glfwSetWindowOpacity

Meta

Since

Added in version 3.3.

Ingroup: window