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

Handling window resizing (without cycles)

$
0
0

Hello,

My window code always seems to have a cyclic event issue which requires hacks to keep a consistent sync with Window and GraphicsDevice. Essentially when the user resizing (drags) the window you generate an event, then process it in the queue (Syphoned like SFML in my case). In one solution I had an XNA like Graphics Manager that was called to change the resolution of the device to reflect the window. However if the user changes the resolution using the GraphicsManager directly it has to trigger the window to resize if its in windowed mode. As should be easy …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



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