SDL_DisplayOrientation SDL_GetCurrentDisplayOrientation(SDL_DisplayID displayID);
| SDL_DisplayID | displayID | 問い合わせるディスプレイのインスタンスID |
(SDL_DisplayOrientation) ディスプレイのSDL_DisplayOrientation列挙体の値を戻す. 得られなかったときSDL_ORIENTATION_UNKNOWNを戻す.
この関数とSDL_GetDesktopDisplayMode()は, SDLがフルスクリーンで, かつ解像度を変えたとき異なる. その場合, この関数は変更前ではなく変更後のディスプレイモードを戻す.
この関数を呼べるのはメインスレッドのみである.