Function glfwGetCurrentContext

Source
pub unsafe extern "C" fn glfwGetCurrentContext() -> *mut GLFWwindow
Expand description

@brief Returns the window whose context is current on the calling thread.

This function returns the window whose OpenGL or OpenGL ES context is current on the calling thread.

@return The window whose context is current, or NULL if no window’s context is current.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread.

@sa @ref context_current @sa @ref glfwMakeContextCurrent

@since Added in version 3.0.

@ingroup context