Commit Graph

68 Commits

Author SHA1 Message Date
Бранимир Караџић
5453faacf1 Fixed issue #2279. 2020-10-09 09:52:00 -07:00
MooZ
9d369ab4a0 Fixed msaa for OpenGL ES targets. (#2277) 2020-10-05 10:17:01 -07:00
Бранимир Караџић
d1685a366a Fixed build. 2020-09-03 23:45:20 -07:00
Бранимир Караџић
8f4750b199 Cleanup. 2020-09-02 20:43:47 -07:00
云风
2480ea3dbe avoid gcc warnings: cast-function-type (#2252) 2020-09-01 20:20:03 -07:00
Бранимир Караџић
3f6d049470 Fixed Emscripten function calls. 2020-06-19 09:31:32 -07:00
Бранимир Караџић
2cbcb6ea90 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:18 -07:00
juj
75384ccfe1 Add checks for Emscripten API return values to make sure API calls are not failing (#2160) 2020-06-05 07:34:11 -07:00
Бранимир Караџић
82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
dom607
f1f2d9ff27 Return to the previous surface after swapchain create / destroy. (#1815) 2019-07-12 19:37:51 -07:00
Бранимир Караџић
e574edcd47 Cleanup. 2019-03-22 16:20:56 -07:00
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Branimir Karadžić
72bf5f9870 Cleanup. 2018-10-22 18:08:01 -07:00
PpluX
82dd183d24 Android supports creating swap chains (#1332) 2018-02-14 09:24:40 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
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