Commit Graph

  • 203035cc17
    Merge fa0e566438 into 06167b4f4b Jackson Novak 2025-04-12 23:18:30 +0200
  • 0372e2a2a8
    Merge be99977da6 into 06167b4f4b Stowy 2025-04-12 21:17:31 +0200
  • d000ea1fd8
    Merge af3d63ad0f into 06167b4f4b Joram Vandemoortele 2025-04-12 18:55:37 +0200
  • 7353f25e3f
    Merge 517442381c into 06167b4f4b Johann Muszynski 2025-04-12 18:55:03 +0200
  • 89bae417d4
    Merge e5cf195d8a into 06167b4f4b Eigen Lenk 2025-04-12 19:45:35 +0400
  • da381445c5
    Merge d7e072fe25 into 06167b4f4b Yaroslav Erohin 2025-04-12 19:45:17 +0400
  • e6bc3f1bf4
    Merge ea3e29be5c into 06167b4f4b bangbangsheshotmedown 2025-04-12 19:45:14 +0400
  • 763f61a0e4
    Merge 63a74a92a8 into 06167b4f4b Shivam7-1 2025-04-12 19:45:03 +0400
  • 3abe857a16
    Merge 94a3d57236 into 06167b4f4b caleb-snow-cbm 2025-04-12 20:37:30 +0700
  • b519eecbfb
    Merge 38bb241ced into 06167b4f4b Harrison Lambeth 2025-04-12 13:24:52 +0100
  • dd16618b14
    Merge 9a144d10dd into 06167b4f4b Matthew Nagy 2025-04-12 19:21:16 +0800
  • 430bea7c40
    Merge c133e07096 into 06167b4f4b Jefferey S 2025-04-12 10:44:07 +0100
  • 7ff0b4b4d2
    Merge 63d3af6372 into 06167b4f4b TotallyGamerJet 2025-04-12 14:32:20 +1000
  • 06167b4f4b [Core] Fix a potential null pointer deref in scroll GetScrollContainerData main Nic Barker 2025-04-12 11:27:10 +1200
  • 5fb3f72712
    Merge 46c962d7f2 into eb46688b82 Nick 2025-04-10 23:10:13 +0200
  • b39c882130
    Merge 5e1e807358 into eb46688b82 Michael Savage 2025-04-10 23:10:13 +0200
  • 357b35601e
    Merge b90598e193 into eb46688b82 Nic Barker 2025-04-10 12:03:27 +1200
  • b90598e193 [Core] Replace .scroll config with .clip 014-clip-config Nic Barker 2025-04-10 12:02:18 +1200
  • d83af4cbdc
    Merge fbf8251996 into eb46688b82 Piggybank Studios 2025-04-09 19:17:04 +1000
  • 09f3f61858
    Merge 1c636096e5 into eb46688b82 tomatih 2025-04-08 21:22:49 -0500
  • eb46688b82
    [Renderers/Sokol] Sokol renderer & examples (#373) Nathan Korth 2025-04-08 21:40:22 -0400
  • f2c9bf2cb7 Windows support for sokol_corner_radius Nic Barker 2025-04-09 13:33:34 +1200
  • 644405c88f Fix corner radius example on windows Nic Barker 2025-04-09 13:22:23 +1200
  • 8022610b3f CMake & MSVC fixes Nic Barker 2025-04-09 13:12:31 +1200
  • 51de072730 Add main() stub to sokol example for windows Nic Barker 2025-04-09 11:29:05 +1200
  • aed1f2f30d set SOKOL_GLCORE on linux Nic Barker 2025-04-09 11:27:17 +1200
  • 74f183eef1 Try to fix some cmake issues Nic Barker 2025-04-09 11:18:45 +1200
  • db7d588ab8 sokol renderer & examples Nathan Korth 2025-04-04 17:24:55 -0400
  • 87efc49f52
    [Renderers/WinGDI] Working on Win32 GDI renderer and example (#344) Philosoph228 2025-04-09 04:31:33 +0500
  • fa0e566438 [README] Fix Clay_String definition in README.md file. Oglo12 2025-04-08 15:54:35 -0500
  • 16880c81af
    Merge 8e0d180b4e into a9e94e3be0 Kyle Bueche 2025-04-03 19:31:09 -0500
  • a9e94e3be0 [Core] Fix onHover reference not being reset for identical IDs between frames Nic Barker 2025-04-04 13:05:31 +1300
  • cbb50267da [CMake] Revert change to CMakeLists because of OSX problems Nic Barker 2025-04-04 12:59:57 +1300
  • 9a6c66912b
    Implement bit flags to toggle GDI renderer features Instead of gdi_fabulous introduced some bit flags for enabling/disabling features individually. Mainly for testing and benchmarking purposes of these features until we decide the best implementation for each of them. So they are enabled by setting flags with Clay_Win32_SetRendererFlags() in user code (demo in this case) Philosoph228 2025-04-02 11:54:35 +0500
  • a541f6aa9d
    Make CreateFont call in one line Philosoph228 2025-04-02 11:46:41 +0500
  • 607af63b08
    Change HWND_DESKTOP to NULL in GetDC() calls At first I liked the idea to use something more semantic to pass as HWND to get the screen device context. And there is a HWND_DESKTOP macro which just a simple alias to NULL, but it is actually designed for CreateWindow and naming isn't clear enough. It may confuse someone who reading code that we're trying to get not the screen dc, but that desktop window dc itself. So I won't stand out let it be NULL as that commonly used. Philosoph228 2025-04-02 11:37:55 +0500
  • b1910a45be
    Add redefinition guards for RECTWIDTH/RECTHEIGHT macros Philosoph228 2025-04-02 11:28:57 +0500
  • 222fd49793
    Use CLAY_DISABLE_SIMD Philosoph228 2025-04-02 11:22:45 +0500
  • 8e0d180b4e Resizeable Images + Example Image Loader for Win32 GDI Kyle Bueche 2025-03-31 22:32:53 -1000
  • 55792fdbec
    [Cmake] basic CMake support for easier import into CMake projects (#345) Vitalii Rohozhyn 2025-03-31 23:48:50 +0200
  • 50aad568fa [Core] Remove unused variable in arm simd and inline rotate function' Nic Barker 2025-04-01 10:43:11 +1300
  • b4dc02c73a [Core] Fix a bug with how element string ids were stored when using Clay_Hovered Nic Barker 2025-04-01 10:40:04 +1300
  • 3f635cdd79 [Renderers/Raylib] Fix FLAG_HIGHDPI causing window resize to break Nic Barker 2025-04-01 10:31:40 +1300
  • 28dede3da5 Add tree depth to odin experimental-render-command-tree-depth Nic Barker 2025-03-31 18:47:15 +1300
  • f8bdf01b45 Add tree depth to render commands Nic Barker 2025-03-06 09:36:24 +1300
  • 9a144d10dd [Renderers/SFML2] Added initial SFML2 support MattN 2025-03-28 19:26:47 +0000
  • 6f94826cf5
    Merge edc2d7912e into 1204ac400b Bonk Dog 2025-03-28 19:12:05 +0700
  • 1204ac400b [Compilers] Fix implicit typecast in simd hash function Nic Barker 2025-03-28 11:52:20 +1300
  • 6a7ce77024 [Core] Fix implicit simd typecast on arm architectures Nic Barker 2025-03-28 11:47:31 +1300
  • 7c9506bc31
    [Core] Fix CLAY__ELEMENT_DEFINITION_LATCH overflow in CLAY macro if 256 loops end at the same time Piggybank Studios 2025-03-26 14:14:17 -0700
  • 517442381c Add struct names to public structs Johann Muszynski 2025-03-21 08:54:15 +0200
  • 08e4c5b198 [Core] Fix a bug where ID aliases werent copied on hash collision Nic Barker 2025-03-26 09:34:51 +1300
  • b1c72a0647
    [Bindings/Odin] Remove field hashStringContents in odin bindings (#350) ellie-but-backwards 2025-03-25 21:21:35 +0100
  • aee4baee1c
    [Core] Guard against hashmap item null dereference (#338) Igor Karatayev 2025-03-25 23:19:50 +0300
  • addea58fea
    Merge branch 'nicbarker:main' into win32-gdi Philosoph228 2025-03-25 11:40:09 +0500
  • fd02c528d3
    Add missing font resource Philosoph228 2025-03-25 09:49:24 +0500
  • b2bbdf8760
    Implement accurate rectangle blending and rounding The implementation works by handling special cases where rectangles have semi-transparent background colors or rounded corners. For these cases, it first copies the underlying image region from the window device context, blends the rectangle on top of this captured background, and then draws the final result back to the window DC because we can't access and modify window dc bits directly. Also this approach requires custom pixel processing for color blending and uses sqrtf for precise anti-aliased corners, which isn't ideal for performance. A gdi_fabulous flag is provided to toggle this feature when needed. Philosoph228 2025-03-25 09:47:04 +0500
  • 8a64fc251b
    Remove field hashStringContents in odin bindings ellie-but-backwards 2025-03-25 05:25:25 +0100
  • 8d165e271a Merge branch 'main' of https://github.com/nicbarker/clay into fix_clay_macro_latch_increment Taylor Robbins (Piggybank Studios) 2025-03-24 18:43:26 -0700
  • 08d4a22121 Fixed a bug in the CLAY macro that would cause an infinite loop if 256 for loops ended at the same time (i.e. without another for loop starting). This was caused by the CLAY__ELEMENT_DEFINITION_LATCH static uint8_t overflowing to 0 when incremented in the post-loop step which causes the loop to wrongfully run a second time Taylor Robbins (Piggybank Studios) 2025-03-24 18:21:24 -0700
  • 6c616ff656 Fixed a bug in the CLAY macro that would cause an infinite loop if 256 for loops ended at the same time (i.e. without another for loop starting). This was caused by the CLAY__ELEMENT_DEFINITION_LATCH static uint8_t overflowing to 0 when incremented in the post-loop step which causes the loop to wrongfully run a second time Taylor Robbins (Piggybank Studios) 2025-03-24 18:21:24 -0700
  • 47d1d84bc8
    [Core] Switch text content hashing to default behaviour (#335) Nic Barker 2025-03-25 10:13:04 +1300
  • 966d9cc5f4 Update odin bindings 014-simd-hash Nic Barker 2025-03-25 10:07:45 +1300
  • 4780c1c4c1 Remove debug short circuit Nic Barker 2025-03-25 10:02:22 +1300
  • eeaa569763
    basic CMake support for easier import into CMake projects Vitalii Rohozhyn 2025-03-24 21:59:42 +0100
  • 5a1d13f0a4
    Add support for font loading and rendering Philosoph228 2025-03-24 05:50:10 +0500
  • d9c68cd32d
    Fix CreateWindow client size CreateWindow(Ex) size parameters actually accepts outer window dimensions containing caption and border, which we can calculate with AdjustWindowRect by giving client size window dimensions. Philosoph228 2025-03-24 03:21:19 +0500
  • e0fffb64fe
    Add CMake target for win32_gdi example Philosoph228 2025-03-24 02:55:18 +0500
  • d80da4c700 Remove import Nic Barker 2025-03-24 10:48:40 +1300
  • ce728294ae fix import Nic Barker 2025-03-24 10:33:00 +1300
  • 610f49588c Update odin bindings and introduce TextDynamic proc Nic Barker 2025-03-24 10:31:18 +1300
  • edc2d7912e Add interface target to be used with Meson's CMake module bonk256 2025-03-22 15:18:18 +0100
  • 153d2454fc Possible NULL pointer dereference. Igor Karatayev 2025-03-22 13:25:27 +0300
  • 56b405d2d9 Odin bindings Nic Barker 2025-03-21 19:54:58 +1300
  • 00dbea62ed Add statically allocated field to clay string Nic Barker 2025-03-21 19:32:05 +1300
  • cdd2d607a9 Remove unused header Nic Barker 2025-03-21 18:55:59 +1300
  • b52c0525b3 Cleanup Nic Barker 2025-03-21 14:38:21 +1300
  • e83033fd2a x64 implementation Nic Barker 2025-03-21 14:04:44 +1300
  • 28b8908347 Interim commit Nic Barker 2025-03-19 11:30:00 +1300
  • 63d3af6372
    remove unnecessary cast TotallyGamerJet 2025-03-20 21:54:25 -0400
  • 6935abbbfb
    fix other files too TotallyGamerJet 2025-03-20 21:47:09 -0400
  • 80caa0f4e7
    update signature of debug view close button handler TotallyGamerJet 2025-03-20 21:28:28 -0400
  • ad49977f1b [Core] Apply minimum width for single words and fix some minimum sizing bugs Nic Barker 2025-03-21 10:49:42 +1300
  • 61490e4557
    [Bindings/Odin] expose _OpenElement and _CloseElement (#301) Leo Zurbriggen 2025-03-20 21:25:50 +0100
  • f298e34bdc
    clay.h: update Clay_OnHover to take void* TotallyGamerJet 2025-03-20 10:45:44 -0400
  • 982ade4cf9 [Compilers] Add a dummy function to suppress unused variable warning in GCC Nic Barker 2025-03-18 11:20:51 +1300
  • d5af2c3dc0
    [Renderers/SDL2] Added explicit include of math.h in SDL2 renderer Nic Barker 2025-03-18 11:13:46 +1300
  • 2677bec854 [Housekeeping] Revert previous commit to allow proper PR attribution Nic Barker 2025-03-18 11:12:21 +1300
  • 05ac2810d8 [Renderers/SDL2] Added explicit include of math.h in SDL2 renderer Nic Barker 2025-03-18 11:10:53 +1300
  • 1f8cab8d72 [Core] Fix a bug where floating elements could be clipped incorrectly Nic Barker 2025-03-18 11:05:06 +1300
  • 5e1e807358 [Core] Make Clay_ImageElementConfig::imageData a pointer to const Michael Savage 2025-03-17 11:58:40 +0000
  • 6186596b41
    math.h include missing cause lots of warning logs Emerald-Ruby 2025-03-15 21:51:36 +0000
  • 1c636096e5
    Fix SDL_Rect argument casting to_matih 2025-03-14 18:29:50 +0000
  • e5bd453f5e
    Fix SDL_FRect argument casting to_matih 2025-03-14 16:06:33 +0000
  • a7d46629b1
    [Renderers/SDL2] Fix rounded corner border index Nic Barker 2025-03-13 09:52:16 +1300
  • bee93bc7ba
    [Renderers/Raylib] Reuse memory in raylib renderer for temporary string allocations Nic Barker 2025-03-13 09:51:44 +1300
  • 39fdd0e906
    [Compilers] Fix integer truncation warnings with explicit casts Nic Barker 2025-03-13 09:40:31 +1300
  • 008d4d2519
    [Renderers/win32_gdi] Create initial WinGDI renderer Nic Barker 2025-03-13 09:27:44 +1300
  • 3e39e444db Update README Nic Barker 2025-03-13 09:21:09 +1300
  • 8a57153700 [Bindings/Odin] Add support for local ids to odin bindings Nic Barker 2025-03-13 09:08:20 +1300