[][src]Function rs_glfw3::bindings::glfwSetWindowUserPointer

pub unsafe extern "C" fn glfwSetWindowUserPointer(
    window: *mut GLFWwindow,
    pointer: *mut c_void
)

@brief Sets the user pointer of the specified window.

This function sets the user-defined pointer of the specified window. The current value is retained until the window is destroyed. The initial value is NULL.

@param[in] window The window whose pointer to set. @param[in] pointer The new value.

@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 glfwGetWindowUserPointer

@since Added in version 3.0.

@ingroup window