bgfx/examples/common
Sami Kyöstilä 516e287f24 Make it possible to reset the native window (#796)
On Android when the application goes into the background, the EGL
window surface becomes invalid. It is possible to resume rendering when
coming to the foreground by resetting and reinitializing bgfx from
scratch, but this is costly in terms of performance.

This patch provides an alternative by letting the application provide a
new native window, causing bgfx to recreate just the EGL window surface
while keeping the EGL context intact. This allows the application to
resume rendering without needing to reload textures, shaders, etc.

To test, build and run the Hello World example on Android, switch to
another app and then back again. The screen should not remain blank
after switching back.
2016-05-22 17:16:25 -07:00
..
debugdraw debugdraw: Added cylinder. 2016-04-06 22:21:46 -07:00
entry Make it possible to reset the native window (#796) 2016-05-22 17:16:25 -07:00
font Cleanup. 2016-03-05 11:03:52 -08:00
imgui Cleanup. 2016-05-12 09:42:44 -07:00
nanovg Cleanup. 2016-03-05 11:03:52 -08:00
aviwriter.h Improved reader/writer error handling. 2016-01-31 16:00:02 -08:00
bgfx_utils.cpp Added simple texture viewer tool. 2016-04-21 22:12:35 -07:00
bgfx_utils.h Happy New Year! 2016-01-01 00:11:04 -08:00
bounds.cpp Cleanup. 2016-02-21 22:33:42 -08:00
bounds.h Cleanup. 2016-02-21 22:33:42 -08:00
camera.cpp Happy New Year! 2016-01-01 00:11:04 -08:00
camera.h Happy New Year! 2016-01-01 00:11:04 -08:00
common.h Happy New Year! 2016-01-01 00:11:04 -08:00
common.sh Happy New Year! 2016-01-01 00:11:04 -08:00
cube_atlas.cpp Cleanup. 2016-05-06 21:35:23 -07:00
cube_atlas.h Happy New Year! 2016-01-01 00:11:04 -08:00
packrect.h Happy New Year! 2016-01-01 00:11:04 -08:00
shaderlib.sh Cleanup. 2016-02-28 19:52:15 -08:00