Commit Graph
276 Commits
Author SHA1 Message Date
Branimir Karadžić 2da0e00222 OVR: Fixed uninitialized session. 2016-10-15 20:54:42 -07:00
Branimir Karadžić 84e4a66c96 Cleanup. 2016-09-27 18:11:41 -07:00
Branimir Karadžić 813d145ac9 GLFW: Fixed exit. 2016-09-06 23:07:11 -07:00
Camilla Berglund 8b4f495225 GLFW: Lowered CPU use. 2016-09-05 21:41:03 +02:00
Camilla Berglund 3429fff1ba GLFW: Implemented full GLFW backend. 2016-09-05 21:41:02 +02:00
Branimir Karadžić 0ba8b1895b Cleanup. 2016-09-02 19:49:01 -07:00
Branimir Karadžić 79ef46e4cf Fixed issue #890. 2016-08-26 09:01:49 -07:00
Branimir Karadžić 3ac8943e05 Removed PlatformData helpers. 2016-08-17 20:41:09 -07:00
Branimir Karadžić 939829f88c Moved SDL and GLFW window platform hooks to entry. 2016-08-16 22:22:39 -07:00
Olli Wang fa73aa4b09 Adds iOS device's Retina screen support for nanovg. (#865)
This commit fixes the bug that the bgfx does not respect the `devicePixelRatio` parameter passed to nanovg's `nvgBeginFrame()` function. The problem is caused by the `bgfx::setViewRect()` call defined in the `nvgRenderViewport()` function, as it should take size in consideration of the `devicePixelRatio` value.

However, this commit does not fix nanovg's example app because currently there is no easy way to pass the scale value to the `ExampleNanoVG::update()` method as it calls `nvgBeginFrame()`.
2016-08-05 09:50:02 -07:00
Jean-François Verdon 3bdeea1f4b Android mouse event injection is overcomplicated, and furthemore, bugged: it sends a mouse up event before a mouse down, and have other issues like the fact that he work with one event latter. Simplifying it and correcting it. 2016-07-04 01:55:20 +02:00
Jean-François Verdon a9a7cbb86c Mouse clicks should update mouse position too 2016-07-04 01:42:44 +02:00
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ć 071912b2d2 Fixed MSVC L4 warnings. 2016-05-06 21:29:47 -07:00
Branimir Karadžić a6397f94b7 Renamed CX specific file to use .cx extension. 2016-04-25 19:17:42 -07:00
Branimir Karadžić 196a64d242 Cleanup. 2016-04-24 15:32:51 -07:00
Dario Manesku 59a71ca445 Entry_sdl key input changes. 2016-04-24 23:20:23 +02:00
Dario Manesku 5737270dbc Resolving some name collision. Mouse constructor was not being called. With this rename it works as expected. 2016-04-24 23:18:27 +02:00
Branimir Karadžić 321173961c texturev: Added help menu. 2016-04-24 08:49:49 -07:00
Branimir Karadžić 45f08a3066 SDL: Updated scancodes. 2016-04-23 17:47:36 -07:00
Branimir Karadžić d2579168dc SDL: Fixed Escape key. 2016-04-23 17:06:24 -07:00
Branimir Karadžić 9379b05a57 SDL: Updated scancodes. 2016-04-23 16:55:51 -07:00
Dario Manesku e759e55fd2 Fixing a memory overflow that caused the camera to move right all the time. 2016-04-21 19:51:08 +02:00
Branimir Karadžić e1a60b808d Cleanup. 2016-04-18 09:35:53 -07:00
Dario Manesku 89a868ba29 Capture SDL modifier keys even if no other keys are pressed. 2016-04-15 01:59:33 +02:00
Branimir Karadžić 641d294b9d Cleanup. 2016-04-08 17:30:35 -07:00
Branimir Karadžić 6dc6bff66d SDL: Addded tilde key. 2016-02-29 20:46:27 -08:00
Branimir Karadžić 7b08b5127c Added missing file. 2016-02-26 11:40:40 -08:00
Dario Manesku 1a4c308ba5 Added missing include. 2016-02-26 08:01:08 +01:00
Branimir Karadžić b7f8a8cdb5 Cleanup. 2016-02-25 20:29:09 -08:00
Branimir Karadžić dc46b1a36b Cleanup. 2016-02-21 13:59:38 -08:00
Jean-François Verdon b72300d3ab Using char* as key for unordered_map can lead to unexpected behavior (the hash used for the key is computed using pointer address, not string content) 2016-02-16 15:00:07 +01:00
Miodrag Milanovic c0275c3a77 SteamLink support 2016-02-15 19:45:58 +01:00
Branimir Karadžić 55e72a2dd1 SDL: Fixed crash when loading gamecontrollerdb. 2016-02-04 22:54:40 -08:00
Branimir Karadžić 016bfc4290 Improved reader/writer error handling. 2016-01-31 16:00:02 -08:00
Branimir Karadžić 3552ad873a Fixed #666. 2016-01-25 12:38:58 -08:00
Branimir Karadžić 3126ed79f1 Fixed Linux build. 2016-01-24 22:35:49 -08:00
Branimir Karadžić c63b61870a SDL: Added joystick handling. 2016-01-24 22:17:49 -08:00
Branimir Karadžić 008bc72d6f SDL: Updated controllerdb. 2016-01-23 21:07:44 -08:00
Branimir Karadžić 1b7375df6c entry/x11: Fixed dpad. 2016-01-23 17:09:28 -08:00
Branimir Karadžić 86a38a0160 SteamLink defines. 2016-01-16 00:11:38 -08:00
Branimir Karadžić 053dd8c524 Cleanup. 2016-01-04 22:31:17 -08:00
Miodrag Milanovic f9a7c6ec0b Use BX_PLATFORM_BSD for all BSD based platforms 2016-01-04 18:08:46 +01:00
Branimir Karadžić 4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
zelimdamian 759240d6c8 Added VK_DECIMAL to keyboard code translation 2015-12-16 18:36:08 +00:00
Branimir Karadžić 51ec498559 Cleanup. 2015-12-13 12:33:27 -08:00
Andrew Mac 6c395391a1 Extended Remotery profiling. 2015-11-16 10:42:56 -04:00
Branimir Karadžić cbbba6e5f6 Sprinkled profiler macros. 2015-11-14 17:09:58 -08:00
Branimir Karadžić f6f1b86793 Updated Remotery. 2015-11-14 16:39:15 -08:00