Commit Graph

53 Commits

Author SHA1 Message Date
Branimir Karadžić
dd9f1a235f Cleanup. 2017-02-06 08:56:21 -08:00
PpluX
cd3d3c14f9 Added support for EGL_ANDROID_recordable (#1038) 2017-02-06 08:54:43 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
af9122b209 texturev: Added support for loading .exr images. 2016-12-18 17:02:20 -08:00
Sami Kyöstilä
3d23690216 Give a valid display parameter to eglMakeCurrent (#800) 2016-05-30 16:41:11 -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ć
0e301ab49d Updated README. 2016-03-20 16:25:46 -07:00
Branimir Karadžić
72be9be87d Added ability to expose internal data (D3D device/GL context). 2016-01-13 21:18:59 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić
7a49e4c229 Cleanup. 2015-12-29 20:57:35 -08:00
Branimir Karadžić
a57a788c92 RPI: Fixed build. 2015-12-29 20:00:38 -08:00
Branimir Karadžić
7eb18e4a10 asmjs: Fixed context resize. 2015-08-21 23:11:51 -07:00
Branimir Karadžić
05f94f44be Report HiDPI display support thru caps. 2015-08-17 18:07:00 -07:00
Branimir Karadžić
11868f704a GLES31: Fixed image format test. 2015-05-18 20:24:37 -07:00
Branimir Karadžić
1dd602dd83 EGL: Fixed compile error. 2015-05-11 14:27:38 -07:00
Branimir Karadžić
e70ee88dc7 EGL: Initialize GLES2 when KHR_create_context is not available. 2015-05-10 11:45:49 -07:00
Branimir Karadžić
a91232015f Fixed warning. 2015-05-01 15:12:44 -07:00
Branimir Karadžić
4e431c99db EGL: Fixed use extension use. 2015-04-22 21:39:20 -07:00
Branimir Karadžić
0da98e8645 Fixed creation of GLES3 textures with compute write flag. 2015-04-22 15:11:45 -07:00
Branimir Karadžić
a528554e67 Cleanup passing platform window/context data. 2015-04-20 16:22:40 -07:00
Branimir Karadžić
11794da949 Cleanup. 2015-04-18 00:39:57 -07:00
Ka-ming Chan
9e7e143f21 Add GLSurfaceView / external EGLContext support on Android by skipping the creation of BGFX's eglContext if g_bgfxAndroidWindow is set to NULL 2015-04-18 15:26:17 +08:00
Branimir Karadžić
288361b5c1 Pass all reset flags to glcontext. 2015-04-06 21:31:26 -07:00
Branimir Karadžić
6ba3a60c1a Fixed amalgamated build with multiple renderers. 2015-03-21 22:11:59 -07:00
Branimir Karadžić
7279a31768 GL: Cache current GL context. Issue #262. 2015-02-17 11:50:31 -08:00
Branimir Karadžić
1d4eb335a7 Removed X11 include in bgfxplatform.h. 2015-02-06 16:49:04 -08:00
Branimir Karadžić
c7a32e63cc Cleanup. 2015-01-31 15:06:44 -08:00
Branimir Karadžić
c65f04ae05 EGL: Added ability to use EGL on Linux. 2015-01-31 13:47:27 -08:00
Branimir Karadžić
8d70a2abde Added gl_PrimitiveID builtin for fragment shaders. 2015-01-12 19:37:42 -08:00
Branimir Karadžić
c25dd466be Updated copyright year. 2015-01-01 15:04:46 -08:00
Branimir Karadžić
857a2b18f1 Android: Fixed GLES3+ build. 2014-12-23 23:32:36 -08:00
Branimir Karadžić
3e4b82e7fe Fixed typo. Issue #196. 2014-11-30 09:06:47 -08:00
Branimir Karadžić
7362288131 Added EGL swap chain. 2014-09-24 19:22:15 -07:00
Branimir Karadžić
f4c7f69ed7 Added swap chain caps. 2014-09-23 20:35:39 -07:00
Branimir Karadžić
2c03cf4927 Added multiple windows support. 2014-09-07 17:17:38 -07:00
Branimir Karadžić
af8bc1fac0 RPI: Init EGL via dispmanx. 2014-08-24 20:39:35 -07:00
Branimir Karadžić
140e990ab4 Added RaspberryPi platform. 2014-08-24 17:41:41 -07:00
Branimir Karadžić
62b620a1a0 Initial compute support. 2014-07-20 20:27:13 -07:00
Branimir Karadžić
85c5172a29 Changed GLES macro to use version number. 2014-03-29 23:12:15 -07:00
Branimir Karadžić
03dc9225ed Enabled GL extensions for asm.js. 2014-03-18 22:50:24 -07:00
Branimir Karadžić
db735f5ff6 GL import code cleanup. Added ability to load GLES library dynamically. 2014-02-18 23:36:13 -08:00
Branimir Karadžić
91043b0195 Added dynamic loading of EGL library on Windows. 2014-02-16 16:40:08 -08:00
Branimir Karadžić
9ff1d0c513 Updated copyright year. 2014-02-10 22:07:04 -08:00
bkaradzic
492e99e1c3 Android fixed RGBA16F texture format. 2013-12-10 22:18:00 -08:00
bkaradzic
6249e68467 Android default screen resolution. 2013-12-09 20:18:51 -08:00
bkaradzic
5b4d4b37fa Fixed GL imports. 2013-12-07 22:01:32 -08:00
bkaradzic
ea39b33e87 EGL: Added stencil config. 2013-10-19 22:17:52 -07:00
bkaradzic
2ef508139f GL/GLES: vsync. 2013-04-27 15:16:05 -07:00
bkaradzic
767df6c5e6 Android plumbing. 2013-04-18 21:16:09 -07:00
bkaradzic
365f2655b3 Added aditional render target color formats. 2013-03-28 22:34:59 -07:00