Alexander W. Schultz
b6a7791d13
disables intrinsics on SDL demos
...
SDL library has an issue where it expects intrinsics headers to be
provided, but intrinsics are not exactly part of a standard, so there is
no guarantee that they will be available. As such, the library allows
you to turn them off. I am disabling them to allow for better
portability and ease of compilation.
2024-10-20 23:17:02 -04:00
Antti Keränen
6566d9075d
Improve Vulkan demo ( #717 )
...
* demo: fix errors and warnings in GLFW Vulkan demo
* demo: improve resize handling in GLFW Vulkan demo
On my machine (x86_64 Linux, Wayland) VK_SUBOPTIMAL or
VK_OUT_OF_DATE_KHR were never returned so the resizing of the swapchain
never happened.
Fix by using GLFW's resize callback to detect a window resize and a
swapchain recreation. Vulkan tutorial uses the same approach.
fb_scale was never used in the Vulkan backend, so it was removed.
* demo: fix copy&paste typo in GLFW Vulkan demo
* demo: sync nuklear_glfw_vulkan.in.h with nuklear_glfw_vulkan.h
Over time people have not been noticing that the expected workflow is to
build nuklear_glfw_vulkan.h from nuklear_glfw_vulkan.in.h
2024-10-19 04:04:28 -04:00
Antti Keränen
b2ffce5131
demo/backend: add vulkan SDL backend and demo
...
Based on other SDL demos and GLFW Vulkan demo.
2024-10-19 04:03:54 -04:00
Stephen-Zulauf
03198a016b
Add Catppucin color styles ( #695 )
2024-10-02 23:08:10 -04:00
Rob Loach
8f45d37cf6
demo: Rename zahnrad binaries to demo
2024-10-02 23:02:35 -04:00
JS Deck
e360f267ed
add up/down/ctrl-b/ctrl-e key handling to d3d11 demo
2024-10-02 12:12:51 -04:00
Kirill Rodriguez
fa9f257c7b
untyped pointers fail when you use c++ compiler
2024-09-29 01:59:17 -04:00
Andrew Kravchuk
a02e1824b8
allegro5: correctly handle subimages NK_COMMAND_IMAGE
2024-09-18 09:07:28 +02:00
Andrew Kravchuk
e4901c5358
allegro5: correctly handle zero region in NK_COMMAND_IMAGE
2024-09-18 06:46:14 +02:00
Andrew Kravchuk
19dc0131f3
allegro5: take image region into account for NK_COMMAND_IMAGE
2024-09-17 20:52:58 +02:00
Mark
f3de6a0cb3
Update nuklear_xcb.h: eliminate two warnings in C99 mode
...
Function `NK_API int nk_cairo_render(struct nk_cairo_context *cairo_ctx, struct nk_context *nk_ctx)` returns an int but `return;` is used twice. Now replaced with `return nk_false;`. This makes for clean compilation with both C89 _and_ C99.
2024-09-14 10:37:45 +01:00
Rob Loach
18f7e7a948
demo: Add headers to overview.c ( #684 )
...
This adds the required C headers directly to the top of the overview.c demo so that they don't need to be added in the renders themselves.
2024-09-08 12:34:09 -04:00
Rob Loach
458112efd3
demo: Add time.h to overview.c
...
This adds the `time.h` include to the top of overview.c so that the renders don't need to include it manually.
2024-09-02 14:15:44 -04:00
Rob Loach
f7847e6024
Add delta_time_seconds to a few renderers ( #628 )
2024-08-29 22:22:55 -04:00
PROP 65
751d2bfbff
Update nuklear_sdl_gl2.h
2024-08-29 03:17:04 +00:00
PROP 65
1d03d421c5
Update nuklear_sdl_gl3.h
2024-08-29 03:16:51 +00:00
PROP 65
f180a5c423
Update nuklear_sdl_gles2.h
2024-08-29 03:16:40 +00:00
PROP 65
49fd23e13c
sfml_gl2: add delta_time_seconds
2024-08-29 03:15:45 +00:00
PROP 65
81ae780756
sfml_gl3: add delta_time_seconds
2024-08-29 03:14:25 +00:00
PROP 65
4bfc027e08
xlib: add delta_time_seconds
2024-08-29 03:13:45 +00:00
PROP 65
c3fe64a487
xlib_gl2: add delta_time_seconds
2024-08-29 03:13:22 +00:00
PROP 65
42b9ea7943
xlib_gl3: add delta_time_seconds
2024-08-29 03:11:10 +00:00
PROP 65
d043803932
xlib: add delta_time_seconds
2024-08-29 03:09:28 +00:00
PROP 65
b3b400895d
Add delta_time_seconds
to the SDL OpenGL renderers ( #671 )
...
RE: #627
2024-08-28 11:18:48 -04:00
Rob Loach
29b7be6de0
knob: Add color styles
2024-08-27 11:43:39 -04:00
PROP 65
820eca5858
Update overview.c
2024-08-19 01:03:06 +00:00
PROP 65
c048d6fbc3
add knobs
2024-08-19 00:44:47 +00:00
bolt
0883109476
Quickfix glfw shift-key handling
...
All of the glfw demo headers unset shift keypresses when the ctrl key is not
also down.
I can't think of a reason this would be desired and it appears no other demo
code does this.
Unless I'm mistaken, simply removing these lines leaves us with the desired
behaviour.
2024-07-11 12:33:37 +01:00
Rob Loach
0319c0ff3b
Add triangle outline symbols ( #654 )
2024-06-30 13:30:17 -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
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
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
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
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
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