Function glfwSetWindowSize

  • This function sets the size, in screen coordinates, of the content area of the specified window.

    For full screen windows, this function updates the resolution of its desired video mode and switches to the video mode closest to it, without affecting the window's context. As the context is unaffected, the bit depths of the framebuffer remain unchanged.

    If you wish to update the refresh rate of the desired video mode in addition to its resolution, see glfwSetWindowMonitor.

    The window manager may put limits on what sizes are allowed. GLFW cannot and should not override these limits.

    Parameters

    • window: GLFWwindow

      The window to resize.

    • width: number

      The desired width, in screen coordinates, of the window content area.

    • height: number

      The desired height, in screen coordinates, of the window content area.

    Returns void

Generated using TypeDoc