glfwGetCurrentContext

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.

extern (C) @nogc nothrow __gshared
glfwGetCurrentContext
()

Return Value

Type: GLFWwindow*

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

Meta

Since

Added in version 3.0.

Ingroup: context