glfwGetFramebufferSize function

void glfwGetFramebufferSize(
  1. Pointer<GLFWwindow> window,
  2. Pointer<Int32> width,
  3. Pointer<Int32> height
)

! @brief 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.

@paramin window The window whose framebuffer to query. @paramout width Where to store the width, in pixels, of the framebuffer, or NULL. @paramout height 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

@since Added in version 3.0.

@ingroup window

GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height)

Implementation

void glfwGetFramebufferSize(
    Pointer<GLFWwindow> window, Pointer<Int32> width, Pointer<Int32> height) {
  final glfwGetFramebufferSizeLookupFunction = libglfw.lookupFunction<
      Void Function(Pointer<GLFWwindow> window, Pointer<Int32> width,
          Pointer<Int32> height),
      void Function(Pointer<GLFWwindow> window, Pointer<Int32> width,
          Pointer<Int32> height)>('glfwGetFramebufferSize');
  return glfwGetFramebufferSizeLookupFunction(window, width, height);
}