glfwGetPrimaryMonitor

Returns the primary monitor.

This function returns the primary monitor. This is usually the monitor where elements like the task bar or global menu bar are located.

extern (C) @nogc nothrow __gshared
glfwGetPrimaryMonitor
()

Return Value

The primary monitor, or null if no monitors were found or if an error occurred.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED.

Thread Safety

This function must only be called from the main thread.

@remark The primary monitor is always first in the array returned by @ref glfwGetMonitors.

@sa @ref monitor_monitors @sa @ref glfwGetMonitors

Meta

Since

Added in version 3.0.

Ingroup: monitor