Commit Graph
676 Commits
Author SHA1 Message Date
Dario Manesku 528756610b Added imguiGetWidgetW(). 2014-12-24 02:34:06 +01:00
Dario Manesku 67c69d3ba2 Fixing scissor for nvg elements. 2014-12-24 02:34:05 +01:00
Branimir Karadzic 558707e0d8 Cleanup. 2014-12-23 10:57:48 -08:00
Branimir Karadžić 798dd30e9f Cleanup. 2014-12-22 20:14:48 -08:00
stanlo 99ec87c9db Update nbody example 2014-12-22 16:36:18 -08:00
Branimir Karadzic 9b2ca73de4 x11: Added gamepad support. 2014-12-21 13:35:11 -08:00
Branimir Karadžić e1a7daf38a Win: Capture mouse when mouse button is down. 2014-12-20 19:07:01 -08:00
Branimir Karadzic 0d20d7e6c8 Added gamepad guide button. 2014-12-20 10:38:40 -08:00
Branimir Karadžić 3de8b63457 Fixed crash when xinput is not present. 2014-12-19 22:37:31 -08:00
Branimir Karadžić 83f151f71b Added 24-nbody compute shader example. 2014-12-19 21:09:58 -08:00
Branimir Karadžić f46b91db84 Cleanup. 2014-12-18 21:39:38 -08:00
Branimir Karadžić 35ff06d577 Added gamecontrollerdb. 2014-12-17 21:30:11 -08:00
Branimir Karadžić 6315743251 SDL: Added connect/disconnect gamepad events. 2014-12-17 21:25:00 -08:00
Branimir Karadžić cdc0c01503 Added XInput support. 2014-12-17 21:07:40 -08:00
Branimir Karadzic 510bc9e344 Cleanup. 2014-12-15 21:08:55 -08:00
Branimir Karadžić b7cd5ae62d Cleanup. 2014-12-15 20:59:22 -08:00
Branimir Karadžić 73a227cefd SDL2: Added gamepad support. 2014-12-15 20:58:54 -08:00
Dario Manesku 6ad5c8eb2c Preventing mouse scroll multiple areas at once and scroll bar scissor problem fixed. 2014-12-14 03:02:32 +01:00
Dario Manesku a9a2895132 Added 1px to scissor area. 2014-12-14 03:02:31 +01:00
Dario Manesku 815312466c Draging scroll bars with mouse now behaves more properly. 2014-12-14 03:02:31 +01:00
Dario Manesku f448f18ae4 Removed code duplication by merging drawRect() and drawRoundedRect(). 2014-12-14 03:02:31 +01:00
Branimir Karadžić 40f68757f8 Cleanup. 2014-12-11 00:00:07 -08:00
Branimir Karadžić 3ccf3f70bb Cleanup. 2014-12-10 22:44:00 -08:00
Attila Kocsis 4a7a9bc4a3 fixed crash on iOS 2014-12-10 22:38:50 +01:00
Branimir Karadžić 3fca947ad0 Updated README. 2014-12-06 18:19:20 -08:00
Branimir Karadžić 878cbd41bd shaderc: Added shader strip. 2014-12-05 20:28:15 -08:00
Branimir Karadžić 254efb5a3d Added bgfx::dbgTextImage API for drawing directly into debug text buffer. 2014-12-04 20:32:19 -08:00
Branimir Karadžić 584a32038f Cleanup. 2014-12-04 19:56:19 -08:00
Branimir Karadzic 38f340b540 Fixed issue #197. 2014-12-01 08:21:13 -08:00
Branimir Karadžić 7dd1e263b8 Merge pull request #189 from dariomanesku/master
Imgui updates.
2014-11-22 23:06:21 -08:00
Dario Manesku 8777b44e59 NVG now flushes on imguiEndArea(). 2014-11-23 01:17:51 +01:00
Dario Manesku eb2fd71664 Added imguiSetCurrentScissor(). 2014-11-23 01:07:58 +01:00
Dario Manesku 116f2179a4 Adding _size parameter for imguiColorWheel. 2014-11-23 00:44:38 +01:00
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 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
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
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
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