Commit Graph

94 Commits

Author SHA1 Message Date
Branimir Karadžić
a60095c1b6 Updated shaders. 2017-03-11 15:02:37 -08:00
Branimir Karadžić
65f2b998ff Updated shaders. 2017-02-24 19:43:40 -08:00
Branimir Karadžić
d72aff9e5d Rebuilt shaders. 2017-02-11 10:30:16 -08:00
Branimir Karadžić
64922762df Cleanup. 2017-02-06 16:22:08 -08:00
Branimir Karadžić
b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
58e46330cd Updated embedded shaders. 2016-12-05 16:55:49 -08:00
Branimir Karadžić
4afd337d5e Cleanup. 2016-12-04 19:52:48 -08: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ć
69c5902453 Rebuilt shaders. 2016-09-30 20:03: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ć
f9486780c2 Updated NaCl toolchain to v49. 2016-09-02 21:25:01 -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ć
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ć
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
Olli Wang
c960c46564 Moves additional bgfx nanovg functions to a separate header file.
This commit moves the additional nanovg functions for bgfx to a separate header file, so it is possible to compile the original nanovg  source files with bgfx in a custom build environment.
2016-08-05 17:26:06 +08:00
Branimir Karadžić
e46135da8c Added ability to programmatically capture frame with RenderDoc. 2016-06-02 18:46:43 -07:00
Branimir Karadžić
21518f201f texturec: Preserve precision of input texture. 2016-06-02 16:38:26 -07:00
Branimir Karadžić
2b77088a38 Cleanup. 2016-03-05 11:03:52 -08:00
Branimir Karadžić
dc46b1a36b Cleanup. 2016-02-21 13:59:38 -08:00
Branimir Karadžić
608e038b96 Manually merged PR #676. 2016-02-08 12:53:19 -08:00
Branimir Karadžić
728a8ee4e5 NanoVG: Added ability to pass custom allocator. 2016-02-07 18:58:17 -08:00
Branimir Karadžić
a972d1fef0 Tools cleanup. 2016-01-30 16:15:25 -08:00
Branimir Karadžić
6af72ce686 nanovg: Allow texture update after creation. 2016-01-25 09:26:14 -08:00
Branimir Karadžić
ab9a0c12b0 Cleanup. 2016-01-12 13:20:07 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić
fac71e9e35 Fixed issue #569. 2015-12-08 16:09:30 -08:00
Branimir Karadžić
46822b242a Updated NanoVG. 2015-12-05 11:00:11 -08:00
Branimir Karadžić
35f9c78080 Cleanup. 2015-11-28 16:13:26 -08:00
Branimir Karadžić
f5d9c28f03 Fixed clang warning. 2015-11-23 19:05:52 -08:00
Branimir Karadžić
6e7de6f122 NanoVG: Fixed #519 crash. 2015-11-02 18:59:01 -08:00
Branimir Karadžić
69fd07a590 Rebuilt shaders. 2015-10-24 22:47:24 -07:00
Branimir Karadžić
6aa6efda12 Added initial texture read back support. 2015-10-20 16:32:08 -07:00
Branimir Karadžić
0fba3c137e Added checks for redundant uniform sets. 2015-09-25 20:54:40 -07:00
Branimir Karadžić
d1f99896ec Moved public header files into bgfx subdirectory.
grep -rl '<bgfx.h>' . | xargs sed -i 's@<bgfx.h>@<bgfx/bgfx.h>@g'
2015-09-18 20:19:12 -07:00
Branimir Karadžić
6e9ed09d19 Rebuilt shaders. 2015-09-03 20:00:15 -07:00
Branimir Karadžić
4470f7097c Fixed HLSL reflection for samplers. 2015-09-01 16:44:11 -07:00
Kocsis Attila
5d5df77318 Metal backend: initial commit 2015-08-14 15:12:44 +02:00
Branimir Karadžić
1fa85ccf27 Replaced bgfx::setProgram function with bgfx::submit argument. Added bgfx::touch and bgfx::getStats. 2015-07-22 18:05:11 -07:00