glfwSetMonitorUserPointer

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.

extern (C) @nogc nothrow __gshared
void
glfwSetMonitorUserPointer

Parameters

monitor GLFWmonitor*

The monitor whose pointer to set.

pointer void*

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

Meta

Since

Added in version 3.3.

Ingroup: monitor