glfwSetWindowUserPointer

Function glfwSetWindowUserPointer 

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

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

@since Added in version 3.0.

@ingroup window