Commit Graph

638 Commits

Author SHA1 Message Date
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
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
Sylvain
34450093d7
Add example to use Nuklear with SDL2 SDL_Renderer and SDL_RenderGeometry() 2021-03-26 09:19:50 +01:00
Hecklezz
ff7f929e38 Made D3D11 implementation work when using NK_UINT_DRAW_INDEX 2020-12-29 15:08:47 +10:00
Martijn Versteegh
7fea82f534 Properly cleanup all resources and remove some obsolete comments. 2020-10-07 11:43:40 +02:00
Martijn Versteegh
dc635effbc Don't show the grid demo, since it doesn't work that well without keyboard handling. 2020-10-07 11:42:45 +02:00
Martijn Versteegh
737bb49754 Remove overly spammy printf.\n 2020-10-07 11:37:45 +02:00
Martijn Versteegh
b5faf09c4f Add a rawfb backend which uses SDL_Surface's for output.
The other sdl  demo backends all use OpenGL, which defeats the
purpose of using SDL_Renderer for portabilty.
This is maybe not as good as a full SDL_Renderer backend, but it
is more flexible. For most applications software rendering of the
UI is more than fast enough.
2020-10-07 11:18:20 +02:00
Andrew Kravchuk
264abf4af1
Added processed event flag as a return value in allegro5 backend 2020-06-16 19:03:50 +03:00
Patrick McMorris
c1e7be31bd fix incorrect memset size in shutdown for glfw demo 2020-06-11 23:03:38 -07:00
wyattscarpenter
9812c131b4
use integer for integer bound
I got a warning about this from my compiler (cl.exe). I tested it both ways, and the behavior is the same, except for the compiler warning no longer occurs after my change.
2020-06-11 07:08:43 -05:00
Andrew Kravchuk
539f477781
Improved user font initialization in allegro5 backend 2020-06-06 09:50:00 +03:00
Andrew Kravchuk
74db09cdab
Added ability to use user fonts after initialization in allegro5 backend 2020-06-05 12:01:49 +03:00
Andrew Kravchuk
f7960ba73c
Fixed naming bug in allegro5 backend image support 2020-05-27 07:57:02 +03:00
Andrew Kravchuk
151916aee4
Added image support to allegro5 backend 2020-05-26 17:56:13 +03:00
Arnavion
e98ddde398 Migrate wayland demo to xdg_shell.
The wl_shell interface it previously used is deprecated and not implemented
by some compositors, like sway.

Fixes #134
2020-05-17 12:07:21 -07:00
Richard Gill
910df27fa0
nuklear_glfw_gl3.h without implementation (#124)
note: including nuklear implementation in glfw_gl3 implementation file is still needed because of the usage of some macros (i.e. NK_MEMSET)
2020-05-08 13:12:55 +02:00
crazyBaboon
244a98ea7b
Fix missing space in overview.c "Popup->Right click here:" 2020-05-03 11:06:50 +01:00
Richard Gill
fe01ff52eb demo/glfw_opengl3 Remove global state 2020-04-30 15:17:24 +02:00
Zane Ashby
9818f642da Fix memory leak in demo and example code.
Clear cmds nk_buffer after each frame to stop it growing over time.
2020-04-12 01:40:09 +12:00
crazyBaboon
4f6b838748 Remove duplicated #include <math.h> 2020-03-09 21:51:08 +00:00
Johan Söderlind Åström
81e408a805 Added arg params in main function to fix conflicting types for 'SDL_main' error 2020-02-28 15:24:03 +01:00
Zidi
135b585695 zidi add comment 2020-02-27 10:11:05 +08:00
Zidi
ad8dcbb385 add some comment 2020-02-26 22:50:16 +08:00
Zidi
9ee58df23e add some comment 2020-02-26 22:47:48 +08:00
Zidi
ce6b5b03c4 fix backspace question mark problem 2020-02-26 11:21:22 +08:00