glfwGetWindowUserPointer

Function glfwGetWindowUserPointer 

Source
pub unsafe extern "C" fn glfwGetWindowUserPointer(
    window: *mut GLFWwindow,
) -> *mut c_void
Expand description

@brief Returns the user pointer of the specified window.

This function returns the current value of the user-defined pointer of the specified window. The initial value is NULL.

@param[in] window The window whose pointer to return.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread. Access is not synchronized.

@sa @ref window_userptr @sa @ref glfwSetWindowUserPointer

@since Added in version 3.0.

@ingroup window