-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detecting screen orientation chage #36
Comments
Hi! |
@PavelRudko-ARM Thanks, this is very useful! Is |
Hi @TheMostDiligent, onContentRectChanged Is called when "The rectangle in the window in which content should be placed has changed."
|
So to answer your question. When this event fires the Swapchain can be resized |
This said after reviewing both the ndk implementation and the |
Hello!
I was reading an article about surface rotation, and it was very helpful - thank you. However, I am struggling with rotation detection. The article suggests to handle APP_CMD_CONTENT_RECT_CHANGED event, however if you take a look at native_app_glue.c file from the most recent NDK (21.1), you will find out that the event is never generated. Similarly,
APP_CMD_WINDOW_RESIZED
is also a dead event.The only one that is really generated is
APP_CMD_CONFIG_CHANGED
, but this one is very inconsistent: on some devices it is generated before the surface has been rotated, on others - after.I was trying to compare window dimensions, but, again, on some devices the window size changes before the surface size changes.
I can handle
SUBOPTIMAL
error code, but I am looking for the method that will also work for GLES.Thank you!
The text was updated successfully, but these errors were encountered: