Commit Graph

2260 Commits

Author SHA1 Message Date
Alexander W. Schultz
80805cdfc0 updates makefile to handle documentaion generation a little better 2024-11-07 19:24:40 -05:00
Alexander W. Schultz
d1821eebc7 removing old documentation generator 2024-11-07 19:24:40 -05:00
Alexander W. Schultz
7cb39a360d C89 style comment blocks
nuklear.h has been converted to C89 style comment blocks instead of the
amalgamation it was before (presummably a relic of the other
documentation system).

examples compile. more testing is required.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz
d3ea630a84 Adds HEADER to the doxygen output
HEADER is the intro API section of the paq'd files, which is the most
critical part of our documentation. Ideally, this file needs to stay the
same style because it needs to be incorporated into the header file;
however, we can make a minor modification to allow doxygen to render it.
with this commit, I change the name to HEADER.c to allow doxygen
processing. This shouldn't have any affect on the generated paq file.
Eventually, I would like to move this HEADER file into a different name
and the overall mainpage of the documentation.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz
2ac678a94d converts nuklear.h to doxygen comment styles
the difference isnt staggering by any means. the original comment blocks
had most everything we needed. More work is required and there are still
questions to be had about how much information / styling is desired to
be retained in the code comments, verses removing some styling because
doxygen handles that conversion into html with styling automatically.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz
050fbbaf9a whoops. forgot to add Doxyfile to previous commit 2024-11-07 19:24:40 -05:00
Alexander W. Schultz
3723ca585b adds source file processing to doxygen.
this commit adds the proper source file directory, so now doxygen picks
up all of the C files for processing. Some minor cleanup and file
exclusions have also been added such that things like `paq.sh` and sub
`Readme.md` files are not picked up.
2024-11-07 19:24:40 -05:00
Alexander W. Schultz
abb3e406aa initial commit of doxygen files
Adds initial doxyfile for doxygen configuration. Has some basic settings
for getting up and running with decent results.

Also, the beautiful doxygen-awesome-css project has been included in the
makefile such that we can pull (on your own time) a nice package to make
the doxygen output so much prettier to look at than the default.
2024-11-07 19:24:40 -05:00
Rob Loach
d5969abb86
Merge pull request #728 from Immediate-Mode-UI/revert-721-const-correctness
Revert "const correctness in public API"
2024-11-07 19:24:02 -05:00
Rob Loach
d123122a27
Revert "const correctness in public API" 2024-11-07 19:22:55 -05:00
Rob Loach
f169ee68d1
Merge pull request #721 from Xeverous/const-correctness
const correctness in public API
2024-11-07 18:52:54 -05:00
Rob Loach
985ddcbccb
Merge pull request #723 from awschult002/sdl_intrin
disables intrinsics on SDL demos
2024-11-05 09:43:49 -05:00
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
Xeverous
748f0dafe7 const correctness in public API 2024-10-15 19:27:56 +02: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
Rob Loach
2ad47c08f1 Rebuild nuklear.h 2024-09-30 13:41:55 -04:00
Rob Loach
0a28e3002b Fix incompatible pointer types warning 2024-09-30 13:33:55 -04:00
Kirill Rodriguez
fa9f257c7b untyped pointers fail when you use c++ compiler 2024-09-29 01:59:17 -04:00
Rob Loach
2156b95a5d
Merge pull request #709 from ryuukk/rounding
Round layout widget position to nearest 0
2024-09-29 01:59:01 -04:00
ryuukk
b6e261b508 Round layout widget position to nearest 0 2024-09-28 21:44:42 +02:00
Rob Loach
964cc81fad
Merge pull request #697 from ryuukk/patch-2
Update proggyfont urls
2024-09-25 11:34:03 -04:00
ryuukk
5c89e05538
Change proggyfont urls 2024-09-23 15:32:17 +02:00
Rob Loach
ca8aaf3f65
Merge pull request #690 from lockie/master
allegro5: take image region into account for NK_COMMAND_IMAGE
2024-09-19 10:56:09 -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
Rob Loach
4ffef5eb11
Merge pull request #689 from mark-summerfield/patch-1
Update nuklear_xcb.h: eliminate two warnings in C99 mode
2024-09-14 14:20:37 -04: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
ec113a0f7c
Merge pull request #680 from Immediate-Mode-UI/demo-overview--time
demo: Add time.h to overview.c
2024-09-04 11:43:17 -04:00
Rob Loach
4373fd03cc
Merge pull request #682 from PROP65/func_fix
Fixes for nk_strtod, nk_strtof, and nk_strtoi
2024-09-03 20:07:35 -04:00
PROP 65
19bb57b893
Update nuklear.h 2024-09-03 03:46:11 +00:00
PROP 65
cb9dc9635a
Update nuklear_util.c 2024-09-03 03:39:49 +00: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
Rob Loach
9eeb910d01
Merge pull request #672 from PROP65/delta
Add delta_time_seconds to X11 and SFML renderers
2024-08-29 10:50:22 -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