Commit Graph

3626 Commits

Author SHA1 Message Date
Branimir Karadžić
10b9d079bf Cleanup. 2016-05-22 17:20:27 -07:00
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
Branimir Karadžić
7063c2a030 Updated ImGui. 2016-05-21 14:54:06 -07:00
Branimir Karadžić
d9e65258b0 Updated ImGui. 2016-05-21 09:27:18 -07:00
Branimir Karadžić
ea67fa406f Fixed PTC14A decoding. Issue #792. 2016-05-19 15:04:20 -07:00
Branimir Karadžić
910cc76191 Added alpha test texture. 2016-05-19 13:27:45 -07:00
PendingChaos
768cf72ca7 GL: Fixed a bug where the depth buffer is not written to (#793)
`glDisable(GL_DEPTH_TEST)` disables not just depth testing but depth writing too. In the OpenGL renderer, it is called even when depth writing is enabled. This commit makes it fall back to `glEnable(GL_DEPTH_TEST)` and `glDepthFunc(GL_ALWAYS)` when it is enabled.
2016-05-19 12:15:34 -07:00
Branimir Karadžić
c86b996eb3 texturev: Added color channel filtering options. 2016-05-18 09:10:02 -07:00
Branimir Karadžić
f848cf6d73 Updated README. 2016-05-15 14:12:16 -07:00
Branimir Karadžić
0abfc0b47f Updated ImGui. 2016-05-15 09:23:51 -07:00
Branimir Karadžić
4adecab397 Cleanup. 2016-05-15 09:02:25 -07:00
Branimir Karadžić
133b9c42f1 Merge pull request #789 from nem0/master
waitRender and waitSubmit in the stats
2016-05-15 08:31:13 -07:00
Mikulas Florek
16c73cd71b waitRender and waitSubmit in the stats 2016-05-15 17:27:13 +02:00
Branimir Karadžić
ef56d9b9b2 Updated ImGui. 2016-05-13 08:03:36 -07:00
Branimir Karadžić
9cc3997795 Cleanup. 2016-05-12 09:42:44 -07:00
Branimir Karadžić
5b5d7c999d Cleanup. 2016-05-11 17:02:41 -07:00
Branimir Karadžić
556acae191 Added Doug Binks' ImGui color scheme. 2016-05-11 07:44:13 -07:00
Branimir Karadžić
59821c8c0a Updated ImGui. 2016-05-10 20:07:30 -07:00
Branimir Karadžić
579cd6647e KTX: Fixed parser. 2016-05-10 15:07:35 -07:00
Branimir Karadžić
57fccfe497 Cleanup. 2016-05-09 21:32:51 -07:00
Branimir Karadžić
751acb0c45 Fixed iOS/OSX build. 2016-05-09 13:26:55 -07:00
Branimir Karadžić
37ba66d357 Updated ImGui. 2016-05-08 21:58:20 -07:00
Branimir Karadžić
407c37e8d3 Cleanup. 2016-05-08 14:50:04 -07:00
Branimir Karadžić
3ca4d7feb3 Updated ImGui. 2016-05-08 10:16:37 -07:00
Branimir Karadžić
6af3a7c952 Switched texture assets build to ninja. 2016-05-07 14:19:56 -07:00
Branimir Karadžić
7dddab9f1c Updated ImGui. 2016-05-07 00:37:02 -07:00
Branimir Karadžić
3b61978c7a Cleanup. 2016-05-06 21:35:23 -07:00
Branimir Karadžić
071912b2d2 Fixed MSVC L4 warnings. 2016-05-06 21:29:47 -07:00
Branimir Karadžić
537c70965d Switched mesh assets build to ninja. 2016-05-06 20:44:21 -07:00
Branimir Karadžić
220cabeae5 texturev: Fixed build. 2016-05-06 10:55:41 -07:00
Branimir Karadžić
8cf12291f4 texturev: Added Linux file association. 2016-05-05 22:55:38 -07:00
Branimir Karadžić
1872250574 texturev: Remove existing associations. 2016-05-05 20:18:20 -07:00
Branimir Karadžić
7658a29e4a texturev: Fixed registry executable path string. 2016-05-05 17:24:28 -07:00
Branimir Karadžić
3ea0ba3ac0 texturev: Added option to associate texture file extension with texture viewer. 2016-05-05 16:22:48 -07:00
Branimir Karadžić
9beac469af Added check for texture flag missuse. 2016-05-04 20:33:24 -07:00
Branimir Karadžić
eaedcb402c Updated ImGui. 2016-05-04 20:10:06 -07:00
Branimir Karadžić
1d25dec13e Fixed loading 24-bit DDS texture. 2016-05-04 17:51:16 -07:00
Branimir Karadžić
54f2d66710 Updated ImGui. 2016-05-03 19:29:37 -07:00
Branimir Karadžić
729d95da20 Updated README. 2016-05-03 07:31:14 -07:00
Branimir Karadžić
034fd7c437 Updated ImGui. 2016-05-01 16:46:36 -07:00
Branimir Karadžić
8658890d37 Merge pull request #781 from selfshadow/va-list-fix
Fixed reuse of va_list in traceVargs
2016-05-01 15:46:07 -07:00
Stephen Hill
bd822fffa6 Fixed reuse of va_list in traceVargs
It's not safe to reuse va_list over multiple var-arg calls.
2016-05-01 18:33:01 -04:00
Branimir Karadžić
358ec62a52 Updated glsl-optimizer. 2016-04-30 20:29:53 -07:00
Branimir Karadžić
cdf87ab691 shaderc: Added --disasm flag support for GLSL. 2016-04-30 11:44:38 -07:00
Branimir Karadžić
32a9594134 Cleanup. 2016-04-30 11:08:56 -07:00
Branimir Karadžić
6cba8d5665 Updated README. 2016-04-29 21:16:17 -07:00
Branimir Karadžić
d2d40498eb Updated ImGui. 2016-04-27 21:35:15 -07:00
Branimir Karadžić
ab3ba43756 GL: Fixed shader patching. 2016-04-26 17:35:01 -07:00
Branimir Karadžić
cf2b772729 Updated RenderDoc. 2016-04-25 22:09:32 -07:00
Branimir Karadžić
a51d059f17 Updated ImGui. 2016-04-25 21:11:13 -07:00