Commit Graph

2190 Commits

Author SHA1 Message Date
Rob Loach
8e18c0da3e
Rebuild nuklear.h 2024-07-23 11:38:59 -04:00
Rob Loach
0f15d72404
Fix for NK_OFFSETOF on Emscripten
Getting the following error with Emscripten, complaining that __builtin_offset isn't available. This disables the usage of it when on Emscripten...

```
nuklear.h:8978:38: error: defining a type within '__builtin_offsetof' is a C23 extension [-Werror,-Wc23-extensions]
 8978 |     NK_STORAGE const nk_size align = NK_ALIGNOF(struct nk_command);
```
2024-07-23 10:37:25 -04:00
Rob Loach
8f3fc31ba5
Merge pull request #662 from bolt-blue/indentation_quickfix
Improve one poor case of indentation
2024-07-20 03:06:17 -04:00
bolt
a689b8efdf Improve one poor case of indentation
The original code was distinctly unclear. I've tried to keep to the
surrounding code style while making the code flow more comprehensible.

I've not looked elsewhere for any other similar occurrences; this became
apparent while investigating a specific line of thought.
2024-07-18 09:04:14 +01:00
Rob Loach
0319c0ff3b
Add triangle outline symbols (#654) 2024-06-30 13:30:17 -04:00
Rob Loach
74a12afc62
Rebuild nuklear.h 2024-06-27 13:58:56 -04:00
Rob Loach
aaee3007ea
Merge pull request #652 from SchelZ/master
Fix rounding of panels
2024-06-22 22:24:06 -04:00
SchelZ
d3d4a3e96e
Update nuklear_panel.c 2024-06-17 19:56:16 +03:00
Rob Loach
504f8319a8 Rebuild nuklear.h
Fixes #648
2024-06-14 03:17:37 -04:00
Rob Loach
47f570c048
Merge pull request #642 from SnootierMoon/master
Add `const` qualifiers to `nk_allocator` in more places.
2024-05-25 16:41:23 -04:00
Rob Loach
b9e84c03f0
Merge pull request #636 from Ryder17z/patch-1
Proposal: Update nuklear_sdl_renderer.h to use recommended path for SDL.h
2024-05-25 15:46:07 -04:00
Rob Loach
8e84d63c6c
sdl: Allow changing the SDL.h path 2024-05-23 13:33:28 -04:00
Rob Loach
6286f22996
Merge pull request #638 from ccawley2011/rawfb-pixel-format
Support arbitrary pixel formats with more rawfb demos
2024-05-23 13:32:31 -04:00
Rob Loach
72198bb2e1
Merge pull request #641 from idontcares31249/master
Fix missing nk_sdl_handle_grab declarations in SDL demo headers
2024-05-22 16:24:14 -04:00
Akshay Trivedi
dd61233c1f Add casts for stbtt alloc userdata 2024-05-21 12:43:04 -07:00
Akshay Trivedi
59b6277209 Add const qualifier to more nk_allocator parameters 2024-05-21 12:36:02 -07:00
User
b848bb0141 added nk_sdl_handle_grab declarations to demo/sdl_*/ headers 2024-05-17 08:13:14 +00:00
Cameron Cawley
488525745a Support arbitrary pixel formats with more rawfb demos 2024-05-03 11:46:23 +01:00
Rob Loach
37e54da201
property: Allow optional labels for properties with # (#634) 2024-04-28 02:42:54 -04:00
Rob Loach
7e9da57c09
Add Dracula style (#621)
This introduces a new Dracula color style inspired by the [Dracula theme](https://draculatheme.com).
2024-04-28 01:02:34 -04:00
Rob Loach
a10a830b0e
Merge pull request #635 from Immediate-Mode-UI/xcb-cairo
Add XCB-Cairo
2024-04-27 15:17:39 -04:00
TheExileFox
38be74be66
Update nuklear_sdl_renderer.h
change SDL include path to the recommended path
2024-04-27 11:03:55 +02:00
Rob Loach
7f5c642bb3
Standardize INCLUDE_OVERVIEW defines 2024-04-25 16:49:50 -04:00
Rob Loach
86da26fbc1
Have the height of the style dropdown be automatic 2024-04-25 16:39:17 -04:00
Rob Loach
4cfea49522
Remove STYLE_ defines as we have the style dropdown 2024-04-25 16:37:07 -04:00
Rob Loach
2f2474af45
Clean up the style dropdown 2024-04-25 16:22:36 -04:00
Rob Loach
3a7f458499
Merge branch 'master' into xcb-cairo 2024-04-17 15:19:53 -04:00
Rob Loach
0cbc6f43aa
Add CANVAS demo 2024-04-15 20:59:29 -04:00
Rob Loach
31b5729d66
[overview] Fix show_markers boolean type (#633) 2024-04-09 14:00:50 -04:00
Rob Loach
5fb51369a1
Update rawfb demos to use similar code (#629)
This change unifies the rawfb code, by @ccawley2011.
2024-04-06 01:27:07 -04:00
Rob Loach
7194b523f1
Merge pull request #630 from RobLoach/fix-overview-warning
Fix overview mixed declarations
2024-04-05 15:25:44 -04:00
Rob Loach
a46521c099
Fix overview mixed declarations 2024-04-04 13:25:45 -04:00
Rob Loach
34ea8bb042
Merge pull request #602 from brianwatling/optional-chart-boxes
Add a style option to disable point markers on charts
2024-04-04 13:17:17 -04:00
Victor Chernyakin
c8e91e571c
Fix strncpy() call to use nuklear API (#595) 2024-04-04 13:13:08 -04:00
Rob Loach
d1fa8f7614
Merge pull request #619 from jonpikum/glfw-vulkan-demo
Minor fixes for GLFW Vulkan Demo
2024-04-04 13:07:10 -04:00
Rob Loach
055a0aad0f
Merge pull request #618 from dav64/fix_bitwise_cpp20
Fix bitwise operations warnings in C++20
2024-03-16 19:10:25 -04:00
Rob Loach
deb529f5dd
Merge pull request #609 from paccerdk/FixDemosGrab
Fix missed grab state changes in SDL demos
2024-03-16 13:48:34 -04:00
Jonathan Bradley
03aa3086a0 demo: don't error-out on image count difference
The Vulkan spec states that create_info.minImageCount determines
the minimum number of images to create, not the exact count.
The count retrieved via vkGetSwapchainImagesKHR can (and in my
case does) differ - without penalty to the rest of the demo.
2024-03-08 15:01:13 -05:00
Jonathan Bradley
40a172bdaa demo: don't error-out on VK_SUBOPTIMAL_KHR 2024-03-08 11:40:43 -05:00
Lautriva
5f2e2af737 Add Changelog in nuklear.h for 4.12.1 2024-03-07 13:40:31 +01:00
Lautriva
d40d95471e Add Changelog in nuklear.h for 4.12.1 2024-03-07 13:39:12 +01:00
Lautriva
1edb78e4d0 Fix bitwise operations warnings in C++20 2024-03-07 13:27:33 +01:00
Brian Watling
254dfc2120 s/hide_markers/show_markers/ 2024-02-26 22:58:44 -05:00
paccer
56ab9d96ea Added comment to nk_sdl_handle_grab in SDL demos
Explains call order of SDL_SetRelativeMouseMode and SDL_SetWindowGrab
2024-02-23 20:39:08 +01:00
Rob Loach
8e5c9f7f34
Merge pull request #597 from waywardmonkeys/fix-typos
Fix spelling mistakes
2024-02-23 13:18:39 -05:00
paccer
a10eb1351a Fix cursor warping to center on older SDL versions
Reverted the order of the SDL_WarpMouseInWindow and SDL_GetMouseState
to its original sequence.
This avoids cursor warping to the center of screen on older SDL versions
It causes an additional SDL_MOUSEMOTION event when ungrabbing, but does
not cause any issues.
2024-02-10 17:21:32 +01:00
paccer
e3b0f24626 Fix missed grab state changes in SDL demos
Move grab handling out of `nk_sdl_handle_event` to `nk_sdl_handle_grab`,
which is now called outside of the event loop.
This change makes the logic similar to the GLFW demos and fixes issues
with missed grab state changes and mouse cursor disappearing.
2024-02-10 03:03:16 +01:00
Rob Loach
24d6a47d73
Merge pull request #607 from Immediate-Mode-UI/demo-overview-nk_bool
demo: Fix overview's `nk_bool` usage
2024-01-29 00:33:34 -05:00
Rob Loach
8f1ce6f0c1
demo: Fix overview's nk_bool type usage
The overview demo uses some `nk_bool`s that are typed as `int`s. While things still do function, if you're using `NK_INCLUDE_STANDARD_BOOL`, it breaks compilation. This change fixes the `nk_bool`s to be actual `nk_bool`s.
2024-01-26 15:14:04 -05:00
Rob Loach
9d9781d5e2
Merge pull request #606 from pabdulin/fix-possible-loss-of-data
Suppress compiler `possible loss of data` warning with explicit cast
2024-01-25 15:31:24 -05:00