Function glfwSetWindowIcon

  • This function sets the icon of the specified window. If passed an array of candidate images, those of or closest to the sizes desired by the system are selected. If no images are specified, the window reverts to its default icon.

    The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.

    The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48.

    Parameters

    • window: GLFWwindow

      The window whose icon to set.

    • count: number

      The number of images in the specified array, or zero to revert to the default window icon.

    • images: GLFWimage

      The images to create the icon from. This is ignored if count is zero.

    Returns void

Generated using TypeDoc