glfwGetWindowUserPointer

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.

extern (C) @nogc nothrow __gshared
void*
glfwGetWindowUserPointer

Parameters

window GLFWwindow*

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

Meta

Since

Added in version 3.0.

Ingroup: window