Commit Graph

902 Commits

Author SHA1 Message Date
Libor Čapák
b57d8e22bd fix sdl entry + gamecontrollerdb.txt (#1048)
* missing bx/mutex.h include

* gamecontrollerdb.txt update
2017-02-17 09:37:04 -08:00
Branimir Karadžić
094c6a95d7 Cleanup. 2017-02-16 21:07:39 -08:00
Branimir Karadžić
55e3b56314 Cleanup. 2017-02-16 20:41:22 -08:00
Branimir Karadžić
61be03a1d3 Cleanup. 2017-02-15 22:24:49 -08:00
Branimir Karadžić
42a01f6f1a Cleanup. 2017-02-13 23:19:08 -08:00
Branimir Karadžić
98857222c2 Cleanup. 2017-02-13 22:09:51 -08:00
Libor Čapák
b0eac0a809 new function TextMetrics::clearText() (#1046) 2017-02-13 13:27:07 -08:00
Branimir Karadžić
d72aff9e5d Rebuilt shaders. 2017-02-11 10:30:16 -08:00
Branimir Karadžić
fab74e9c4a Cleanup. 2017-02-11 09:12:16 -08:00
Branimir Karadžić
bfe5a66b3e Cleanup. 2017-02-09 19:31:19 -08:00
Branimir Karadžić
7983b68047 Cleanup. 2017-02-08 20:29:38 -08:00
Branimir Karadžić
b99ebb9535 Cleanup. 2017-02-08 19:55:31 -08:00
Branimir Karadžić
64922762df Cleanup. 2017-02-06 16:22:08 -08:00
Branimir Karadžić
b1eb4098ee Fixed warning. 2017-02-01 21:51:53 -08:00
Branimir Karadžić
82ec67105f Cleanup. 2017-01-23 09:42:10 -08:00
Andrew Copland
19770a8f20 Updating code to match bx changes. (#1028) 2017-01-22 08:52:31 -08:00
Branimir Karadžić
335c1ae320 Removing duplicated code. 2017-01-20 15:06:51 -08:00
Branimir Karadžić
14dccb7f1e Cleanup. 2017-01-19 00:22:06 -08:00
Branimir Karadžić
f5c2ed411b Fixed tinyexr warnings. 2017-01-18 10:46:08 -08:00
Branimir Karadžić
14dbb67320 Fixed IFH debug flag. 2017-01-10 17:14:50 -08:00
Branimir Karadžić
c992291e94 Updating code to match bx. 2017-01-08 15:55:14 -08:00
Branimir Karadžić
1350734fbb Link bx library. 2017-01-08 15:15:22 -08:00
Branimir Karadžić
747b6156cc Added particles example screenshot. 2017-01-05 21:28:43 -08:00
Branimir Karadžić
6cb7042496 Cleanup. 2017-01-04 23:45:19 -08:00
Branimir Karadžić
7fbbc1f98d ps: Added aabb calculation for emitter. 2017-01-04 22:07:56 -08:00
Branimir Karadžić
b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Branimir Karadžić
f9934d5253 Cleanup. 2017-01-03 21:36:49 -08:00
Branimir Karadžić
df7761ead9 Cleanup. 2017-01-03 20:39:41 -08:00
Branimir Karadžić
0ae76fac33 Cleanup. 2017-01-03 12:42:23 -08:00
Branimir Karadžić
76ecde3d37 Added example-32-particles. 2017-01-03 00:23:18 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
71295d783b GLFW: Fixed uninitialized data. Issue #1009. 2016-12-30 10:36:10 -08:00
Branimir Karadžić
2c958f4809 Cleanup. 2016-12-25 12:57:35 -08:00
Libor Čapák
5a7fb2d323 WM_CLASS(STRING) = BGFX (#1003) 2016-12-25 10:39:06 -08:00
Branimir Karadžić
6bce3762da Fixed tinyexr warning. 2016-12-22 23:32:24 -08:00
Branimir Karadžić
5c10e94533 Fixed warnings. 2016-12-22 21:14:16 -08:00
Branimir Karadžić
07aae82d16 Replaced checkAvail* with getAvail* API. 2016-12-22 16:18:44 -08:00
Branimir Karadžić
25a6a6c4a2 debugdraw: Added texture quad rendering. 2016-12-20 21:20:55 -08:00
Branimir Karadžić
9a0615ee91 debugdraw: Added texture fill shader. 2016-12-19 22:13:15 -08:00
Branimir Karadžić
af9122b209 texturev: Added support for loading .exr images. 2016-12-18 17:02:20 -08:00
Branimir Karadžić
2c5e21966f Cleanup. 2016-12-15 10:59:57 -08:00
attilaz
f873dcbd10 metal fixes, optim (#997)
osx meamleak fix
refactored commandqueue handling to be somewhat similar to d3d12
removed slow cb sync in buffer update
2016-12-15 08:54:45 -08:00
Branimir Karadžić
b063d2b029 DebugDraw: Added spin, and quad. 2016-12-13 21:58:18 -08:00
Branimir Karadžić
e8dee2d79c Cleanup. 2016-12-09 16:06:10 -08:00
Branimir Karadžić
dc6c1698cd Merge branch 'master' of github.com:bkaradzic/bgfx 2016-12-08 20:45:09 -08:00
Branimir Karadžić
a5bb9be4ed Cleanup. 2016-12-08 20:45:01 -08:00
Branimir Karadžić
76664ec514 Fixed MSVC build. 2016-12-07 22:46:54 -08:00
Branimir Karadžić
f9aab4c8bf entry: Added file reader/writer support for current directory. 2016-12-07 22:08:20 -08:00
Branimir Karadžić
5a1b718a1f Updating embedded shader handling. 2016-12-05 20:12:31 -08:00
Branimir Karadžić
8da9e54957 Renamed bgfxdefines.h to defines.h, and bgfxplatform.h to platform.h. 2016-12-05 19:52:01 -08:00
Branimir Karadžić
f9bc9d560f Cleanup. 2016-12-05 19:01:11 -08:00
Branimir Karadžić
58e46330cd Updated embedded shaders. 2016-12-05 16:55:49 -08:00
Branimir Karadžić
6b8717e174 Added conversion functions from disk/cylinder to AABB. 2016-12-05 09:55:45 -08:00
Branimir Karadžić
78dc806be7 Cleanup. 2016-12-04 20:11:10 -08:00
Branimir Karadžić
4afd337d5e Cleanup. 2016-12-04 19:52:48 -08:00
Branimir Karadžić
1ffa72356d Rebuilt shaders. 2016-12-04 19:43:49 -08:00
Branimir Karadžić
8068dd7f58 Standardized way to deal with embedded shaders. 2016-12-04 19:43:07 -08:00
Branimir Karadžić
7820a8ee29 Cleanup. 2016-12-03 15:40:18 -08:00
Branimir Karadžić
2ec5c78088 debugdraw: Flush lines when state changes. 2016-12-02 12:10:09 -08:00
Branimir Karadžić
73122b8e08 Fixed issue #982. 2016-11-20 15:56:34 -08:00
Branimir Karadžić
68fb1f5bdd Cleanup. 2016-11-19 18:38:13 -08:00
Miodrag Milanović
7edf2f97c7 Fix UWP build (#981) 2016-11-18 08:57:14 -08:00
Branimir Karadžić
a96372cd69 Cleanup. 2016-11-14 21:46:59 -08:00
Branimir Karadžić
ea5abbef2f Fixed debug draw with noop renderer. 2016-11-14 19:44:38 -08:00
Branimir Karadžić
f7e2c6b291 Cleanup. 2016-11-09 22:22:27 -08:00
Angelo Geels
d79032e21b Use m_mz in ButtonPress mouse event instead of 0 (#962) 2016-11-02 09:31:34 -07:00
Branimir Karadžić
eaa73c9b2e Rebuilt shaders. 2016-10-31 22:13:21 -07:00
Branimir Karadžić
3cc01f4ddb Fixed GCC-6 warnings. 2016-10-20 23:16:18 -07:00
Branimir Karadžić
5f84d95fed Replaced ImGui docking with simpler code. 2016-10-20 22:04:01 -07:00
Branimir Karadžić
2da0e00222 OVR: Fixed uninitialized session. 2016-10-15 20:54:42 -07:00
Branimir Karadžić
15349a45a9 Renamed shader gles dir to essl. 2016-10-01 00:08:37 -07:00
Branimir Karadžić
69c5902453 Rebuilt shaders. 2016-09-30 20:03:41 -07:00
Branimir Karadžić
f1a8c5f195 Cleanup. 2016-09-27 22:07:53 -07:00
Branimir Karadžić
84e4a66c96 Cleanup. 2016-09-27 18:11:41 -07:00
Branimir Karadžić
44de6fb789 Cleanup. 2016-09-08 22:03:42 -07:00
Branimir Karadžić
374fe6f845 Updated NanoVG. 2016-09-08 21:19:47 -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ć
f9486780c2 Updated NaCl toolchain to v49. 2016-09-02 21:25:01 -07:00
Branimir Karadžić
0ba8b1895b Cleanup. 2016-09-02 19:49:01 -07:00
Branimir Karadžić
687e4103fe Added gizmo hook. 2016-08-29 22:31:30 -07:00
Branimir Karadžić
79ef46e4cf Fixed issue #890. 2016-08-26 09:01:49 -07:00
Branimir Karadžić
df88bc2106 Cleanup. 2016-08-22 19:42:38 -07:00
Branimir Karadžić
8809a190ef Fixed calcTextureSize. 2016-08-22 14:17:08 -07:00
Branimir Karadžić
7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Branimir Karadžić
c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -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
Branimir Karadžić
a488207c81 Cleanup. 2016-08-10 21:51:29 -07:00
Branimir Karadžić
2c861766e8 Switch iffy translation code to lookup table translation. 2016-08-10 20:36:21 -07:00
Olli Wang
1804ba77c1 Updates nanovg to support global composite operation. (#877)
This commit updates bgfx's NanoVG codebase to adapt the latest NanoVG commit since I've implemented blending support for the original NanoVG and there is no need of `nvgState()` anymore.
2016-08-10 20:15:31 -07:00
Branimir Karadžić
9f7386e53a Rebuilt NanoVG embedded shader. 2016-08-10 10:59:07 -07:00
Branimir Karadžić
d7026e8f0c Reverted embedded shader. 2016-08-09 22:54:18 -07:00
Olli Wang
b9810aca70 Updates nanovg backend to adopt premultiplied alpha. (#873)
This commit updates nanovg's bgfx backend to adopt premultiplied alpha as the default blending mode just like the original nanovg. Both the fragment shader and the `glnvg__convertPaint()` function are updated to match the original nanovg counterpart.

However, the binary file of the fragment shader is built on Mac so DirectX support is missing.
2016-08-09 22:44:04 -07:00
Branimir Karadžić
dd0d563417 Fixed build. 2016-08-08 16:33:17 -07:00
Branimir Karadžić
b4cb6a352e Fixed clang4 error. 2016-08-08 13:17:07 -07:00
Branimir Karadžić
c25a273e29 Cleanup. 2016-08-08 09:23:42 -07:00
Olli Wang
f11d954bc1 Implements nanovg's framebuffer helper functions. (#869)
This commit ports nanovg's helper functions for rendering stuff in framebuffer defined in `nanovg_gl_utils.h`. Also, a new `nvgState()` function is created for bgfx backend so it is possible to blend between framebuffers, which feature is long requested but not yet supported in original nanovg. The `nvgState()` function can be called between `nvgBeginFrame()` and `nvgEndFrame()`.
2016-08-08 08:33:37 -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