glfwGetWindowUserPointer function
! @brief 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
.
@paramin
window 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
@since Added in version 3.0.
@ingroup window
GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window)
Implementation
Pointer<Void> glfwGetWindowUserPointer(Pointer<GLFWwindow> window) {
final glfwGetWindowUserPointerLookupFunction = libglfw.lookupFunction<
Pointer<Void> Function(Pointer<GLFWwindow> window),
Pointer<Void> Function(
Pointer<GLFWwindow> window)>('glfwGetWindowUserPointer');
return glfwGetWindowUserPointerLookupFunction(window);
}