sdlGetCurrentDisplayOrientation function
Get the orientation of a display.
\param displayID the instance ID of the display to query.
\returns the SDL_DisplayOrientation enum value of the display, or
SDL_ORIENTATION_UNKNOWN if it isn't available.
\since This function is available since SDL 3.1.3.
\sa SDL_GetDisplays
extern SDL_DECLSPEC SDL_DisplayOrientation SDLCALL SDL_GetCurrentDisplayOrientation(SDL_DisplayID displayID)
Implementation
int sdlGetCurrentDisplayOrientation(int displayId) {
final sdlGetCurrentDisplayOrientationLookupFunction = libSdl3.lookupFunction<
Int32 Function(Uint32 displayId),
int Function(int displayId)>('SDL_GetCurrentDisplayOrientation');
return sdlGetCurrentDisplayOrientationLookupFunction(displayId);
}