sdlGetDisplayOrientation function

int sdlGetDisplayOrientation(
  1. int displayIndex
)

Get the orientation of a display.

\param displayIndex the index 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 2.0.9.

\sa SDL_GetNumVideoDisplays

extern DECLSPEC SDL_DisplayOrientation SDLCALL SDL_GetDisplayOrientation(int displayIndex)

Implementation

int sdlGetDisplayOrientation(int displayIndex) {
  final sdlGetDisplayOrientationLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int32 displayIndex),
      int Function(int displayIndex)>('SDL_GetDisplayOrientation');
  return sdlGetDisplayOrientationLookupFunction(displayIndex);
}