Add SDL_SetDisplayOrientation function?

can SDL add SDL_SetDisplayOrientation function? sometime we can change Orientation to switch view to fit game show

1 Like

Did you try:

SDL_SetHint(SDL_HINT_ORIENTATIONS, "Landscape");

I suppose this hint is only used when creating a window. For this purpose we can use AndroidManifest.xml. But how to set the orientation when the window is already created?