Commit graph

1756 commits

Author SHA1 Message Date
Dario Manesku
5c5464c381 Making imguiTabs look better when disabled. 2014-11-23 00:13:38 +01:00
Dario Manesku
07b9760583 Turning on nvg scissor in imguiScroll. 2014-11-23 00:12:31 +01:00
Mike Popoloski
3c04ad2d4c Fixing warnings about locals shadowing others of the same name. At least one of these was an actual bug. 2014-11-22 17:34:09 -05:00
Mike Popoloski
8af790201f D3D_FEATURE_LEVEL_11_2 isn't actually a thing. The D3D11.2 features are checked explicitly instead of using a feature level. 2014-11-22 17:13:14 -05:00
Mike Popoloski
7b2f725645 Fixing compile error. It seems like these should be fabs instead of abs anyway... 2014-11-22 17:12:00 -05:00
Dario Manesku
0d19fe5750 Making imguiCollapse more aesthetically pleasing. 2014-11-22 21:11:31 +01:00
Dario Manesku
1e2bdaf13a Making imguiImageChannel properly handle newly introduced _enabled parameter. 2014-11-22 20:26:34 +01:00
Dario Manesku
dd06ab01e1 Added _enabled parameter for imguiImage. 2014-11-22 19:51:20 +01:00
Dario Manesku
e126781412 Making imgui scroll behave properly. 2014-11-22 19:51:19 +01:00
Branimir Karadzic
36e02361d1 Fixed bad include path. 2014-11-20 16:51:14 -08:00
Branimir Karadžić
cf7b1542d2 Merge pull request #187 from SmilyOrg/patch-2
Fix for crash with too many lines / vertices
2014-11-20 16:48:32 -08:00
Branimir Karadžić
2e24c7cc3e Merge pull request #186 from SmilyOrg/patch-1
Fix for convexFill crash when path fillCount is 0
2014-11-20 16:47:53 -08:00
Branimir Karadžić
68ef25a1aa Merge pull request #185 from dariomanesku/master
Minor imgui update.
2014-11-20 16:47:18 -08:00
Miha Lunar
e5da24f490 Fix for crash when too many lines / vertices
When a lot of lines are being drawn, this can overflow the vertex buffer, causing a crash in `nvgRenderFlush`. While the underlying code handles this case in an okay manner (truncating the vertex buffer instead of crashing), the `nvgRenderFlush` code is missing a check for this case, causing it to think it has more space than was allocated.

I tried to fix it with multiple buffers as mentioned in #160, however it seems more complex than it appears. This fix just makes it truncate the output according to the actual allocated amount of bytes in the vertex buffer, so it doesn't crash at least.
2014-11-21 00:57:33 +01:00
Miha Lunar
6c6a550fd6 Fix for convexFill crash when path fillCount is 0
In our situation, the crash happened due to the view dimensions being reset to 0x0 after minimizing the window. This translated to fillCount of a path ending up at 0, which makes `fan` crash as it computes number of tris to -2 of fillCount. Since `numTris` is unsigned, this could lead to terrible things, but luckily it crashes soon.

There might be a cleaner fix for this further up the call stack, but this is a good solution in the meanwhile.
2014-11-21 00:39:04 +01:00
Branimir Karadzic
472ee8f27e Updated README. 2014-11-20 09:43:42 -08:00
Dario Manesku
b9bd605edc Added overload for imguiTabs() and fixed va_arg warning. 2014-11-20 18:43:27 +01:00
Dario Manesku
950ceee749 Fixing drawing problem. 2014-11-20 18:25:22 +01:00
Branimir Karadzic
00d5f1adcb Fixed clang warning. 2014-11-19 21:07:32 -08:00
Branimir Karadžić
216ce2ac4f Merge pull request #184 from dariomanesku/master
Changed imguiTabs(). Now you can set additional 'enabled' flag per tab.
2014-11-19 07:38:00 -08:00
Dario Manesku
7d2ef49435 Changed imguiTabs() api. Now you can set additional 'enabled' flag per tab. 2014-11-19 16:21:02 +01:00
Branimir Karadžić
6c7589c0c9 Cleanup. 2014-11-17 21:35:53 -08:00
Branimir Karadžić
70253127e4 D3D11: Moved missing defines into header. 2014-11-17 21:13:55 -08:00
Branimir Karadžić
ddddd458f6 Added D3D_FEATURE_LEVEL_11_1 define when it's not defined. 2014-11-17 19:38:58 -08:00
Branimir Karadžić
9d0f823e9f Merge pull request #183 from MikePopoloski/master
Updating README and fixing device issue
2014-11-17 19:35:27 -08:00
Mike Popoloski
d1d38fb825 Fixing whitespace issues. 2014-11-17 22:23:28 -05:00
Mike Popoloski
850059c1cd Fixing D3D11 device creation issues on downlevel hardware. 2014-11-17 22:18:35 -05:00
Mike Popoloski
ef97ea54a9 Updating README 2014-11-17 22:17:50 -05:00
Branimir Karadzic
d54063bfd5 Fixed GCC/Clang warnings. 2014-11-17 08:33:14 -08:00
Branimir Karadžić
ff44d73480 Updated NanoVG and Blendish. 2014-11-16 18:59:17 -08:00
Branimir Karadžić
24df14f9f3 Cleanup. 2014-11-16 09:47:48 -08:00
Branimir Karadžić
8cca656df6 Cleanup. 2014-11-16 00:06:25 -08:00
Branimir Karadžić
616c0ed408 Cleanup. 2014-11-15 22:03:57 -08:00
Branimir Karadžić
283be1f42d Cleanup. 2014-11-15 17:19:14 -08:00
Branimir Karadžić
a4b3c2ae36 Added 23-vectordisplay shaders and screenshot. 2014-11-15 17:00:51 -08:00
Branimir Karadzic
23c046cd8c Updated README. 2014-11-15 16:19:43 -08:00
Branimir Karadzic
c805b36cba Merge branch 'master' of github.com:bkaradzic/bgfx 2014-11-15 16:11:21 -08:00
Branimir Karadzic
57715c3cc9 Added 23-vectordisplay example. 2014-11-15 16:10:44 -08:00
Branimir Karadžić
307b0df945 Updated README. 2014-11-15 15:48:24 -08:00
Branimir Karadžić
1abff576ac Merge pull request #180 from MikePopoloski/master
Adding WinRT Support
2014-11-15 14:41:04 -08:00
Mike Popoloski
48bfab3713 Fixing compile errors on MSVC. 2014-11-15 15:52:14 -05:00
Mike Popoloski
13ab852de4 Updating name of winphone 8.1 toolset. 2014-11-15 15:09:38 -05:00
Mike Popoloski
893035af65 Merge branch 'master' of https://github.com/bkaradzic/bgfx 2014-11-15 13:32:22 -05:00
Branimir Karadžić
bb1fd097ad Merge pull request #179 from dariomanesku/master
Fixing imgui mouse scroll.
2014-11-14 08:31:36 -08:00
Mike Popoloski
2148c54572 Adding WinRT entrypoint for examples. 2014-11-14 08:23:31 -05:00
Mike Popoloski
8bc0607d59 WinRT builds needs to static link against the D3D11 and DXGI libs. 2014-11-14 08:23:07 -05:00
Mike Popoloski
f55a91db97 Adding specialized codepaths for swapchain creation on WinRT, since it requires DXGI 1.3. 2014-11-14 08:22:32 -05:00
Mike Popoloski
0b55cb1348 Adding WinRT platform function and setting it to use multithreaded rendering. 2014-11-14 08:19:33 -05:00
Dario Manesku
8e578b3d37 Fixing imgui mouse scroll. 2014-11-14 11:27:17 +01:00
Branimir Karadzic
fd2fbc6a8b Merge branch 'master' of github.com:bkaradzic/bgfx 2014-11-13 13:31:53 -08:00