Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Android Native Handling Orientation Change

$
0
0

Hey All,

I've been working on a android game and I set it up as entirely a native activity using native app glue. When my app gets a configuration change event or window resize event, I query EGL/Native Window for the new render width/height. My expectation is that when I rotate my phone, the width and height values will swap but they do not change and my rendering surface gets corrupted. My question is, do I have to recreate the native window or EGL surface or EGLContext or all of the above on orientation change? I would …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>