glfwSetMonitorUserPointer

Function glfwSetMonitorUserPointer 

Source
pub unsafe extern "C" fn glfwSetMonitorUserPointer(
    monitor: *mut GLFWmonitor,
    pointer: *mut c_void,
)
Expand description

@brief Sets the user pointer of the specified monitor.

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

This function may be called from the monitor callback, even for a monitor that is being disconnected.

@param[in] monitor The monitor 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 monitor_userptr @sa @ref glfwGetMonitorUserPointer

@since Added in version 3.3.

@ingroup monitor