Cameron Cawley
d09ff8935e
Update to a newer version of stb_image
2023-11-16 17:01:56 +00:00
Andreas Streichardt
a3f0da05ab
✨ make vulkan validation layers optional
2023-11-13 09:17:17 +01:00
Yukyduky
4545d184d3
Separated color_factor for button into text and background
...
Tree node button background looked out of place when disabled, so I made the background not be affected by being disabled.
2023-10-29 10:16:17 +01:00
Andreas Streichardt
e67d078b75
🔥 remove compiled spv files
2023-10-22 12:08:57 +02:00
Andreas Streichardt
b65f1aa28e
✨ add vulkan demo
2023-10-22 12:03:27 +02:00
Yukyduky
2b7f047f15
Merge branch 'master' of https://github.com/Immediate-Mode-UI/Nuklear into disable-widgets
2023-10-17 08:13:06 +02:00
Rob Loach
83e1ebb965
Merge pull request #582 from lockie/master
...
Fixed broken link in Allegro5 backend readme
2023-10-16 23:30:57 -04:00
Wladislav ヴラド Artsimovich
57d1f21056
Fix demo typo
2023-10-17 11:43:21 +09:00
Wladislav ヴラド Artsimovich
2ec96be4b9
Add horizontal rule demo
2023-10-17 11:37:30 +09:00
Andrew Kravchuk
6319e8f787
Fixed broken link in Allegro5 backend readme
2023-10-16 14:01:07 +02:00
Yukyduky
8016ff334d
Added feature to disable widgets
2023-10-11 21:27:52 +02:00
nyaruku
036f8226bb
Fixed Transparent Text Background for GDI
...
Co-authored-by: Rob Loach <robloach@gmail.com>
2023-09-12 18:47:27 +03:00
nyaruku
0435477a91
Fix Copy/Paste/Select All for Text Input
2023-09-08 16:29:21 +03:00
nyaruku
1aae7b555a
Update nuklear_gdi.h
2023-09-06 05:00:45 +03:00
nyaruku
24ceaad002
Add files via upload
2023-09-06 04:47:25 +03:00
Richard Gill
77490e155c
fixed titlebar options in overview demo
2023-05-16 09:21:51 +02:00
Andrew Kravchuk
c09e3b36f8
demo/allegro5: minor string-related tweaks
2023-03-01 18:53:02 +01:00
Mark Jansen
0b7547b710
demo/win32: Add the renderer name to the window title
2022-12-02 00:19:33 +01:00
Mark Jansen
b98732fbc8
gdi_native: Fix calling convention problem
...
The calling convention of a WNDPROC is specified as being 'CALLBACK'.
2022-11-30 18:56:00 +01:00
Th3T3chn0G1t
637b5e198d
Fixed UBSan trip in GLFW OpenGL3 demo backend
...
This resolves a false UBSan trip caused by treating the element offset
in `glDrawElements` as a pointer
This parameter is effectively an offset but is taken as a `void*`
By not storing the offset as a pointer, UBSan no longer tools the offset
to check for null pointer overflow
2022-11-24 10:21:37 +00:00
dumblob
835c6551d4
Merge pull request #504 from riri/demo-includes
...
demos: set style with defines to ease esp. regression testing
2022-10-13 17:59:10 +02:00
Richard Gill
54cd692d17
added comment on ifdefs to use styles in demos
2022-10-13 11:51:50 +02:00
Richard Gill
d63f106334
xlib backend: implemented arc commands
2022-10-12 22:08:08 +02:00
Richard Gill
fc5ce1c495
demos: set style with defines
...
To avoid having to modify the demo code,
conditionnally include a predefined style
2022-10-12 21:19:58 +02:00
dumblob
07bd7a0925
Merge pull request #414 from Ohjurot/gdi_nuklear_native_window
...
Windows (GDI): Native-like nuklear windows
2022-10-06 16:55:17 +02:00
Richard Gill
6a429eca62
cleanup xlib text drawing
...
fixes #502
2022-10-03 21:11:12 +02:00
Richard Gill
a4af91dd21
fixed common files location in demo
2022-08-04 20:57:46 +02:00
Richard Gill
93174aaadc
Merge commit '93a057b3fe305254ce087ff1dbde34bc663c5bc8' into xcb-cairo
2022-08-04 20:50:27 +02:00
Rob Loach
c55fd8cc62
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into tex_null
2022-08-03 13:59:10 -04:00
Rob Loach
ca49016428
Rename more null variables to tex_null
2022-07-30 17:45:12 -04:00
Rob Loach
54fd67bddd
Rename additional .null variables
2022-07-30 17:43:46 -04:00
Rob Loach
ec4acc7cf4
Rename the null variable to tex_null
2022-07-30 17:38:10 -04:00
Rob Loach
7597cc7a09
x11: Free XVisualInfo after use
...
Fixes #473
2022-07-09 17:18:21 -04:00
Ludwig Füchsl
adeb2a720f
Added wWinMain comment
2022-05-30 22:49:12 +02:00
Ludwig Füchsl
50277a1c39
Changed windows include to lowercase
2022-05-29 01:47:00 +02:00
Benedikt Müssig
dca0f6fcfc
Corrected the fill bugs in the GDI binding
2022-05-12 13:30:18 +02:00
Benedikt Müssig
628cc61263
Added the wingdi header to the GDI binding
2022-05-12 13:04:42 +02:00
Benedikt Müssig
e698bb1531
Added the GDI arc drawing commands to the dispatch switch-case
2022-05-12 12:54:03 +02:00
Benedikt Müssig
321badb389
Implemented select all for GDI
2022-05-12 12:52:44 +02:00
Benedikt Müssig
cacdf6baa4
Added the arc methods to the GDI binding
2022-05-12 12:52:05 +02:00
Rob Loach
a51d9eec96
Merge pull request #427 from kbolino/fix-sdl-hidpi-rendering
...
Fix high-DPI scaling in sdl_renderer
2022-04-20 13:51:59 -04:00
Rob Loach
c9d3a3fd20
file_browser: Bring string.h to the top
2022-04-15 17:20:20 -04:00
crazyBaboon
f58114e45e
file_browser.c - remove #include <string.h>
...
It is no longer necessary, since string comparison is now carried out by Nuklear API.
2022-04-13 22:44:14 +01:00
crazyBaboon
e5100bcef6
Ignore case when sorting strings alphabetically
2022-04-13 01:07:41 +01:00
crazyBaboon
e3cec3b6b1
Forgot to include <string.h>
2022-04-03 15:53:49 +01:00
crazyBaboon
0163faffed
file_browser.c - Display files and folders by alphabetical order
2022-04-03 12:40:14 +01:00
crazyBaboon
8f2ccedfa4
Change dialog action from "Save" to "Open"
...
This is because there is yet no text box for the user to write the file name.
2022-03-29 21:00:45 +01:00
crazyBaboon
8377f9147a
Use local static variable instead of global
2022-03-26 19:34:40 +00:00
crazyBaboon
a1df0c4f57
Further improve file_browser.c
...
-Adds visible boundary to file icon box;
-Adds a 'cancel' button that closes the file dialog;
-Adds a 'save' button that should be used for the save() routine defined by the user;
2022-03-26 18:28:49 +00:00
Rob Loach
ceee8839ab
glfw_gl3: Cast the void* to a struct nk_glfw* ( #434 )
...
While it doesn't fix the issue @tree786isback in #434 , it is a good thing to cast the void*'s correctly.
2022-03-22 11:22:22 -04:00
Ludwig Füchsl
1b028c654c
Merge branch 'Immediate-Mode-UI:master' into gdi_nuklear_native_window
2022-03-21 16:34:11 +01:00
crazyBaboon
ec14ad2a30
Better Display file icons in the filebrowser
...
Icons are now displayed in a "Compact list view" rather than a "icon view"
2022-03-19 22:17:33 +00:00
Kristian Bolino
04eac1db2a
Scale font height rather than oversampling
2022-03-16 17:01:39 -04:00
Kristian Bolino
779c420d06
Fix C89 warnings and oversample at 3x scale
2022-03-15 18:10:01 -04:00
Kristian Bolino
ec4aa9992f
Fix high-DPI scaling in sdl_renderer
...
This commit resolves two issues with high-DPI display rendering:
1. The coordinates were not scaled properly, resulting in tiny output
and misalignment of actual cursor position with apparent position;
this is fixed by calling SDL_SetRenderScale with appropriate scaling
factors determined by comparing the window size to the renderer's
output size
2. The fonts were not oversampled, resulting in excessively blurry text;
this is fixed by setting oversample_h and oversample_v on the
font_config according to the scaling factors
2022-03-15 11:43:31 -04:00
Kristian Bolino
cbfc8f89e9
sdl_renderer: fix Metal rendering ( #426 )
...
Addresses an issue where the Metal render driver (macOS) could not handle the clipping rectangle {-8192, -8192, 16384, 16384} and would simply draw nothing to the screen. The solution is to ensure the cliprect coordinates are not negative, which also doesn't break the other render drivers.
Co-authored-by: Kristian Bolino <kbolino@kbolino.com>
2022-03-15 15:28:47 +01:00
crazyBaboon
f0dccaeeec
Integrate file browser with glfw opengl2 demo ( #400 ) and restructure demo/ directory accordingly
2022-03-14 20:46:44 +01:00
Ludwig Füchsl
a31c6c0089
Bug fix & Added comments
2022-03-04 13:16:47 +01:00
Ludwig Füchsl
33395aabdb
Fixed non displayed windows.
...
WARNING: Drawing is not done correctly
2022-02-28 15:53:54 +01:00
Ludwig Füchsl
169470d2e3
Converted from C++ to C
...
WARNING: Is currently not working! Needs more debugging.
2022-02-28 14:57:47 +01:00
Ludwig Füchsl
d4e695420d
Added GDI full featured window code
2022-02-25 11:13:01 +01:00
Ludwig Füchsl
cb59055c06
Added some API dokumentation
2022-02-14 22:41:32 +01:00
Ludwig Füchsl
703d73aebf
Added D3D12 backend and demo
2022-02-14 20:51:28 +01:00
Rob Loach
6686ab1dd5
Fix incorrect cast on SDL_RenderGeometryRaw()
...
Fixes #405
2022-02-06 00:43:54 -05:00
lib-omar
f6851ea2ca
Favor switch over if-else chain in event handler.
2022-01-29 14:19:32 -05:00
lib-omar
811dbacd12
Favor switch over if-else chain in event handler.
2022-01-29 14:18:07 -05:00
lib-omar
43b5e82748
Favor switch over if-else chain in event handler.
2022-01-29 14:15:02 -05:00
lib-omar
8f5ae21035
Favor switch over if-else chain in event handler.
2022-01-29 14:13:34 -05:00
Rob Loach
9486833f61
Merge pull request #396 from Immediate-Mode-UI/br_example_sdl_rendergeometry
...
Backend: SDL2 Renderer
2022-01-09 18:13:28 -05:00
Rob Loach
cd4990834f
sdl_renderer: Update code
2022-01-06 21:55:20 -05:00
Cameron Cawley
20a26c8fec
Restore a previously removed cast
2021-12-22 21:43:33 +00:00
Cameron Cawley
54b14dc103
Support any format with 1, 2, or 4 bytes per pixel in sdl2surface_rawfb
2021-12-22 21:43:29 +00:00
Rob Loach
1f562ecb94
Merge branch 'master' of github.com:Immediate-Mode-UI/Nuklear into br_example_sdl_rendergeometry
2021-12-22 16:08:49 -05:00
dumblob
a3cfd2a910
Merge pull request #378 from ccawley2011/canvas-demo
...
demos: Integrate the canvas example with the demos
2021-12-17 09:47:59 +01:00
Cameron Cawley
48334b8ba6
Implement arcs with GDI+
2021-12-16 21:15:23 +00:00
Cameron Cawley
a12c158ad4
Add more shapes to the canvas demo
2021-12-16 20:26:26 +00:00
Cameron Cawley
459ba9c48c
Integrate the canvas example with the demos
2021-12-16 20:26:26 +00:00
Rob Loach
24912785b7
Merge pull request #379 from ccawley2011/allegro5
...
Fix rendering issues with Allegro
2021-12-16 14:51:45 -05:00
Cameron Cawley
60c52adfaf
Enable and fix most GCC warnings ( #377 )
...
Co-authored-by: Rob Loach <robloach@gmail.com>
2021-12-16 20:44:00 +01:00
Cameron Cawley
c5d18493a4
Correctly implement arcs with Allegro
2021-12-16 18:57:08 +00:00
Cameron Cawley
291ce9b609
Fix rendering polygons and polylines with Allegro
2021-12-16 18:56:07 +00:00
Rob Loach
eadb4179af
sdlrenderer: C89 support
2021-12-14 21:10:30 -05:00
Cameron Cawley
9af0103cac
Build all demos as C89
2021-12-14 20:14:34 +00:00
dumblob
93940ccbd0
Merge pull request #363 from lockie/master
...
allegro5 demo: Fix warning
2021-12-14 09:26:59 +01:00
Andrew Kravchuk
5ea1a668cb
Use NK_UNUSED macro
...
Co-authored-by: Rob Loach <robloach@gmail.com>
2021-12-14 09:15:00 +03:00
luz paz
297e463d37
Fix various typos
...
Found via `codespell -q 3 -L acount,modifyable,nd,pixelx,seperator,te,vertexes`
2021-11-30 21:45:48 -05:00
Andrew Kravchuk
019df39478
Fix warning in Allegro5 demo
2021-11-02 19:22:01 +03:00
Alex Anderson
a37a563315
Add select all shortcut to glfw4 demo
2021-10-10 12:15:21 +02:00
Wladislav Artsimovich
1e4eacca2e
change NK_MEMSET to memset(), because NK_MEMSET is NK internal
2021-06-18 16:19:49 +02:00
Richard Gill
abbd89896f
added style and overview to xbc_cairo demo
2021-06-06 17:27:44 +02:00
Richard Gill
2b886bd2cd
fixes for PR inclusion
2021-05-13 15:22:52 +02:00
Richard Gill
14531a23a5
fixed rect multi color
2021-05-13 01:00:19 +02:00
Richard Gill
ef9fef2189
last xcb try
2021-05-06 21:35:36 +02:00
Richard Gill
596e5d76d9
try to impl rect multicolor command with cairo
2021-05-01 20:50:31 +02:00
Richard Gill
1ae558aa7f
added style selector in demo
2021-05-01 17:48:17 +02:00
Richard Gill
24594c8f75
working
...
from https://github.com/griebd/nuklear_xcb
2021-05-01 17:38:55 +02:00
marcinzelent
d829ff1ef1
Fixed copy and paste in glfw_opengl3 demo
2021-04-08 17:36:07 +02:00
Sylvain
fb698ba7ef
Set back clipping_enabled
2021-04-03 23:40:13 +02:00
Sylvain
6b5cfe5f2b
Save and restore the cliprect
2021-04-03 20:53:19 +02:00
Sylvain
3552e131a9
Remove setting GL attributes
2021-03-30 17:09:57 +02:00