Commit Graph

3826 Commits

Author SHA1 Message Date
Branimir Karadžić 8776bdc4ec Updated README. 2016-08-22 20:22:53 -07:00
Branimir Karadžić df88bc2106 Cleanup. 2016-08-22 19:42:38 -07:00
Branimir Karadžić 457996d407 D3D11: Added texture array support. 2016-08-22 15:40:00 -07:00
Branimir Karadžić 8809a190ef Fixed calcTextureSize. 2016-08-22 14:17:08 -07:00
Branimir Karadžić b74198e869 Updated docs. 2016-08-22 09:17:36 -07:00
Branimir Karadžić 7f4b9165f1 Cleanup. 2016-08-21 14:05:36 -07:00
Branimir Karadžić 7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Branimir Karadžić 9527c756da Merge branch 'master' of github.com:bkaradzic/bgfx 2016-08-20 19:08:16 -07:00
Branimir Karadžić f24dd764a3 Merge pull request #885 from stuartcarnie/va_list
improve inter-operability by exposing dbgTextPrintfVargs API
2016-08-20 19:07:53 -07:00
Stuart Carnie 336357db6f improve inter-operability by exposing dbgTextPrintfVargs API 2016-08-20 19:02:56 -07:00
Branimir Karadžić 63e79499fa Cleanup. 2016-08-20 08:10:20 -07:00
Branimir Karadžić c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -07:00
Branimir Karadžić 7b59fb716a Fixed stale VAO issue. 2016-08-18 19:02:57 -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ć ed4a06bf3a Merge pull request #882 from ckohnert/master
Don't clobber existing contentView if one exists.
2016-08-15 10:57:14 -07:00
Branimir Karadžić 78c91186ac Updated docs. 2016-08-13 13:53:48 -07:00
Stuart Carnie 8f04e3087c Add C99 API to header (#881) 2016-08-13 13:52:38 -07:00
Branimir Karadžić 7671d04cac Updated docs. 2016-08-13 13:49:27 -07:00
Branimir Karadžić c1c7942265 Fixed issue #880. 2016-08-12 19:24:39 -07:00
Christopher Kohnert b2b0b23729 Don't clobber existing contentView if one exists.
Mainly this is a compatibility fix for GLFW, but it would apply to any custom window implementation that sets a contentView prior to initialization.
2016-08-12 14:30:27 -07:00
Branimir Karadžić 6f6f1acd07 Updated ImGui. 2016-08-11 20:22:32 -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
Olli Wang 96120970fc Fixes the issue that mac-only methods causes iOS failed to compile. (#875)
This commit fixes #870 that it uses Mac-only methods and causes iOS failed to compile.
2016-08-10 09:13:18 -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
Stuart Carnie 6cff1b2fb7 metal: synchronize textures with READ flag (#870)
* metal: synchronize textures with READ flag

* Only necessary for desktop
2016-08-08 16:33:45 -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
Branimir Karadžić 41ce24c078 Updated ImGui. 2016-08-07 10:18:18 -07:00
Branimir Karadžić b269f61f8b Quiet GCC bogus warning. 2016-08-06 20:07:03 -07:00
Branimir Karadžić 59fdc3c998 Merge branch 'master' of github.com:bkaradzic/bgfx 2016-08-06 14:06:38 -07:00
Branimir Karadžić e7a32654f4 Updated ImGui. 2016-08-06 14:06:11 -07:00
Olli Wang ae9dddcff4 Allows to change the `opaque` property of `CAEAGLLayer`. (#866)
This commit gives custom `CAEAGLLayer` instance a chance to set the `opaque` property through the `style` property. Currently, the `GlContext` implementation for `CAEAGLLayer` always sets the layer's `opaque` property to `true` explicitly no matter what the original value is. Though setting the layer as opaque does help for performance, there are times this option should be turned off by decision. Now the `opaque` property is respected if setting in the `style` dictionary.
2016-08-05 11:32:30 -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
Branimir Karadžić d876f88a89 Merge pull request #864 from olliwang/nanovg
Moves additional bgfx nanovg functions to a separate header file.
2016-08-05 09:14:13 -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ć 7de947c7c0 Updated docs. 2016-08-04 08:35:14 -07:00
Branimir Karadžić f7060b66ee Cleanup. 2016-08-03 21:57:56 -07:00
Branimir Karadžić cc8d0c5fff Added topologySortTriList. 2016-08-02 20:37:21 -07:00
Branimir Karadžić 911fb72f3a Updated RenderDoc. 2016-08-01 17:21:17 -07:00
Branimir Karadžić 68ae67ff72 Updated ImGui. 2016-07-31 10:06:38 -07:00
Branimir Karadžić a6cac1ceb3 Updated ImGui. 2016-07-30 21:39:51 -07:00
Branimir Karadžić 9597a366c0 Updated ImGui. 2016-07-29 19:22:25 -07:00
Branimir Karadžić f2e46a5c65 D3D9: Fixed assert when frame buffer texture is resized. 2016-07-28 21:19:08 -07:00