目次
-
SDL 3.0 API(機能別)
-
ディスプレイとウィンドウ
- SDL_GetDisplayForPoint
SDL_GetDisplayForPoint
点が含まれるディスプレイを得る
ヘッダ
SDL3/SDL_video.h
構文
SDL_DisplayID SDL_GetDisplayForPoint(const SDL_Point *point);
引数
const
SDL_Point
*
point
問い合わせる点
戻り値
(
SDL_DisplayID
)
point
が含まれるディスプレイのインスタンスIDを戻す. 失敗のとき0を戻す.
SDL_GetError()
を呼んで詳細を知ることができる.
スレッドセーフ
この関数を呼べるのはメインスレッドのみである.
バージョン
SDL 3.2.0以降
関連項目
SDL_GetDisplayBounds
SDL_GetDisplays
SDL Wikiへのリンク
SDL_GetDisplayForPoint - SDL Wiki