SDL2 How to position a window on a second monitor?

后端 未结 3 1561
独厮守ぢ
独厮守ぢ 2021-02-15 16:39

I am using SDL_SetWindowPosition to position my window. Can I use this function to position my window on another monitor?

UPDATE

Us

3条回答
  •  误落风尘
    2021-02-15 17:35

    Yes, you can use SetWindowPosition, if you know the boundaries of the second monitor. You can use the function SDL_GetDisplayBounds(int displayIndex,SDL_Rect* rect) to get them.

提交回复
热议问题