Commit graph

470 commits

Author SHA1 Message Date
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
Attila Kocsis
4a7a9bc4a3 fixed crash on iOS 2014-12-10 22:38:50 +01:00
Branimir Karadžić
878cbd41bd shaderc: Added shader strip. 2014-12-05 20:28:15 -08:00
Branimir Karadzic
38f340b540 Fixed issue #197. 2014-12-01 08:21:13 -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
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
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ć
307b0df945 Updated README. 2014-11-15 15:48:24 -08:00
Mike Popoloski
48bfab3713 Fixing compile errors on MSVC. 2014-11-15 15:52:14 -05:00
Mike Popoloski
893035af65 Merge branch 'master' of https://github.com/bkaradzic/bgfx 2014-11-15 13:32:22 -05:00
Mike Popoloski
2148c54572 Adding WinRT entrypoint for examples. 2014-11-14 08:23:31 -05:00
Dario Manesku
8e578b3d37 Fixing imgui mouse scroll. 2014-11-14 11:27:17 +01:00
Branimir Karadžić
545978d661 Cleanup. 2014-11-12 22:16:19 -08:00
Branimir Karadžić
e147e7b2e6 OVR: Added rendering without distortion. 2014-11-12 21:26:28 -08:00
Dario Manesku
9cc92fd2e1 Cleanup unused code. 2014-11-11 02:27:13 +01:00
Dario Manesku
aa6c92ff40 Fixing inputGetChar(). 2014-11-11 02:09:39 +01:00
Dario Manesku
c7bd2c5e67 Making imguiCube() align better. 2014-11-10 22:36:38 +01:00
Dario Manesku
be0ec20d79 Cleanup. 2014-11-10 22:36:37 +01:00
Dario Manesku
ea4d52ff46 Added click event for imguiImage(). 2014-11-10 22:36:36 +01:00
Dario Manesku
9605583491 Collapse switch for imguiColorWheel() is now always enabeld. 2014-11-10 22:36:36 +01:00
Branimir Karadzic
43b9802b48 Fixed Linux build. 2014-11-10 09:08:26 -08:00
Mike Popoloski
0163c2420f Fixing compile errors from freetype header when building for WinRT. 2014-11-09 18:26:10 -05:00
Branimir Karadžić
31efb2991f Updated to OVR 0.4.3. Added support for event char to read keyboard text input. 2014-11-08 20:57:47 -08:00
Branimir Karadžić
3576434c2b Fixed cubemap shader. 2014-11-03 22:52:36 -08:00
Branimir Karadžić
c400562d61 HMD fixes. 2014-11-03 19:11:08 -08:00
Branimir Karadžić
a2153729be Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
Branimir Karadžić
f6cf4df3d3 Added OculusVR support. 2014-10-28 22:08:55 -07:00
Branimir Karadžić
62abe9db5e Cleanup. 2014-10-25 19:16:24 -07:00
Branimir Karadžić
3947174959 Android: Removed status bar. 2014-10-24 20:33:56 -07:00
Branimir Karadzic
7a829583ce Removed _USE_MATH_DEFINES. 2014-10-23 21:10:44 -07:00
Branimir Karadzic
46ec4e390c Fixed clang build. 2014-10-17 09:45:45 -07:00
Branimir Karadžić
5e39e3b16a clang on VS201x. 2014-10-16 19:54:29 -07:00
Branimir Karadžić
8f6495be0b SDL2: Fixed args. 2014-10-12 16:41:15 -07:00
Branimir Karadžić
8dc34db44a SDL2: Fixed mouse button. 2014-10-12 14:04:06 -07:00
Branimir Karadžić
cd2d643522 Cleanup. 2014-10-12 11:51:58 -07:00
Branimir Karadzic
42c9dafd03 Cleanup. 2014-10-12 11:41:04 -07:00
Branimir Karadžić
8abed27c0c Added SDL2_DIR when using --with-sdl GENie config. 2014-10-12 09:58:06 -07:00
Branimir Karadzic
e063661e95 SDL2: Moved renderer to main thread. Added --with-sdl GENie option. 2014-10-11 21:55:24 -07:00
Branimir Karadzic
12c3508aa2 Fixed clang warning. 2014-10-11 20:59:46 -07:00
Branimir Karadžić
757df73eb5 SDL2: Added multiwindow support to entry_sdl. 2014-10-11 20:42:42 -07:00
Branimir Karadžić
4a1a31b538 Updated glsl-optimizer. 2014-10-11 12:32:43 -07:00
Branimir Karadžić
7dd004b82b NaCl: Fixed compile error due to quad define in sys/types.h. 2014-10-10 23:36:03 -07:00
Dario Manesku
d25990487e Added return value for imguiCube(). 2014-10-06 07:25:31 +02:00
Branimir Karadžić
cc16fa3aa3 Fixed imguiCube scissor. 2014-10-04 18:11:10 -07:00
Branimir Karadžić
c9614914fd Rebuilt imgui cubemap shader. 2014-10-03 20:07:38 -07:00
Branimir Karadzic
51268e11a0 Added lod to imgui cubemap shader. 2014-10-03 14:19:39 -07:00
Branimir Karadžić
096f9d2bf9 Cleanup. 2014-10-02 21:35:32 -07:00
Branimir Karadžić
e037b7cc7b Added missing shader. 2014-10-02 21:29:14 -07:00
Dario Manesku
45a54db6f5 Added imguiCube(). 2014-10-03 05:32:22 +02:00
Branimir Karadzic
b9d509763e Fixed compile error. 2014-10-02 20:10:12 -07:00
Branimir Karadzic
0aba867510 x11: Create/destroy window code. 2014-10-02 19:52:43 -07:00
Branimir Karadzic
8dab207b36 OSX: Fixed window resize. 2014-10-01 20:25:56 -07:00
Branimir Karadžić
1b5454bd51 Fixed 22-windows example. 2014-09-30 22:20:16 -07:00
Branimir Karadžić
bb9a35e809 Win: Don't let OS destroy window. Fixes issue #162. 2014-09-30 19:04:24 -07:00
Branimir Karadzic
2850924e95 Merge branch 'master' of github.com:bkaradzic/bgfx 2014-09-28 13:36:30 -07:00
Branimir Karadzic
af86d1b02d OSX: Added more key translation. 2014-09-28 13:36:23 -07:00
Branimir Karadžić
80f2044a7c Cleanup. 2014-09-28 11:03:47 -07:00
Dario Manesku
9a42955f6e Added _originBottomLeft parameter for imguiImage(). 2014-09-27 20:43:28 +02:00
Dario Manesku
651b5b6fb5 Reordering imgui functions. 2014-09-27 20:43:27 +02:00
Miha Lunar
78746c8972 Merged fixed allocation for paths from nanovg 2014-09-25 13:23:51 +02:00
Branimir Karadzic
22614cf946 x11: Post size event when initializing window. 2014-09-24 21:05:48 -07:00
bkaradzic
e60863e301 Fixed warning: array subscript is of type 'char' [-Wchar-subscripts]. 2014-09-24 16:06:11 -07:00
Daniel Collin
874790838c Added inital mouse and keyboard support for OSX 2014-09-24 22:25:16 +02:00
Branimir Karadžić
f4c7f69ed7 Added swap chain caps. 2014-09-23 20:35:39 -07:00
bkaradzic
dd5492c29a OSX: Clear window after initialization. 2014-09-23 08:11:25 -07:00
Branimir Karadžić
3d3a725812 DX9: Fixed swap chain depth creation. 2014-09-22 23:00:42 -07:00
Branimir Karadžić
59ba895727 Windows: Clear window after initialization. 2014-09-22 22:03:41 -07:00
Branimir Karadzic
e0ab81d387 x11: Clear window after initialization. 2014-09-22 20:37:49 -07:00
Branimir Karadžić
de3d152b9c Added multiple windows example. 2014-09-22 19:34:10 -07:00
bkaradzic
981429d3a1 Merge branch 'master' of github.com:bkaradzic/bgfx 2014-09-21 09:53:02 -07:00
bkaradzic
205b2a37ab Fixed SDL2 entry. 2014-09-21 09:52:55 -07:00
Dario Manesku
60f3b73d01 Fixing scroll bug that was introduced with the previous imgui commit. 2014-09-21 12:28:11 +02:00
Dario Manesku
3a1b16f8a5 Major imgui update. Imgui area and scroll are now separated. Also there are other minor aditions and improvements. 2014-09-20 21:39:12 +02:00
bkaradzic
98c62f2687 Fixed iOS entry. 2014-09-19 10:37:52 -07:00