Add SDL_SetDisplayOrientation function?


#1

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


#2

Did you try:

SDL_SetHint(SDL_HINT_ORIENTATIONS, "Landscape");

#3

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?