glfwGetFramebufferSize

Retrieves the size of the framebuffer of the specified window.

This function retrieves the size, in pixels, of the framebuffer of the specified window. If you wish to retrieve the size of the window in screen coordinates, see @ref glfwGetWindowSize.

Any or all of the size arguments may be null. If an error occurs, all non-null size arguments will be set to zero.

extern (C) @nogc nothrow __gshared
void
glfwGetFramebufferSize

Parameters

window GLFWwindow*

The window whose framebuffer to query.

width int*

Where to store the width, in pixels, of the framebuffer, or null.

height int*

Where to store the height, in pixels, of the framebuffer, or null.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

Thread Safety

This function must only be called from the main thread.

@sa @ref window_fbsize @sa @ref glfwSetFramebufferSizeCallback

Meta

Since

Added in version 3.0.

Ingroup: window