Commit graph

  • b78fd66da8
    [Core] Add Clay_GetPointerOverIds function to the public API. (#389) João Matos 2025-05-14 01:39:56 +0100
  • 78e83b15e0 [Core] Add missing data to floating element debug Patrick Doane 2025-05-13 07:25:14 -0700
  • 807bc25ae7
    [Core] use CLAY__DEFAULT_STRUCT macro gmasil 2025-05-13 15:26:13 +0200
  • f10569c85b [Core] Add Clay_FloatingClipToElement Patrick Doane 2025-05-12 21:03:57 -0700
  • 68a9b78615
    Add idgamg/goclay Patricio Whittingslow 2025-05-12 18:37:16 -0300
  • 5c67b957bb
    [Core] restore compatibility with C99 gmasil 2025-05-12 12:25:41 +0200
  • 32301c1cfb
    Update README.md to solve #387 Patricio Whittingslow 2025-05-11 18:36:00 -0300
  • f4cb35197b removed unused struct Matthew Jennings 2025-05-11 21:39:34 +0300
  • 5471b2e950 removed TODO Matthew Jennings 2025-05-11 17:26:31 +0300
  • c33f2032cd fix wrogn naming convention in variable name Matthew Jennings 2025-05-11 17:25:56 +0300
  • 860b7d821c fixed typo in readme Matthew Jennings 2025-05-11 17:22:24 +0300
  • c936efaecb added an image to the example Matthew Jennings 2025-05-11 16:44:13 +0300
  • 0249d0034b formatted code + load second system font and use it for the buttons in the demo Matthew Jennings 2025-05-10 20:04:43 +0300
  • fb092e59f2 implemented image scaling and variabel corner radius rendering Matthew Jennings 2025-05-10 14:34:04 +0300
  • 76265e4c3c
    [Bindings/Odin] Add missing border macros to Odin bindings Jeroen van Rijn 2025-05-09 03:25:34 +0200
  • 446a4caadc Add missing macro Jeroen van Rijn 2025-05-08 15:52:45 +0200
  • c483269295
    [Documentation] Fix anchor to Clay_CustomElementConfig (#403) Sam El-Borai 2025-05-06 02:41:33 +0200
  • 4aad9daa9e [Documentation] Update README Nic Barker 2025-05-06 12:08:07 +1200
  • b99cf3603a rename function with old naming convention Matthew Jennings 2025-05-05 20:57:01 +0300
  • b06f5ec400 updated to simulate setup with multiple fonts Matthew Jennings 2025-05-05 20:33:55 +0300
  • 749d1bb7de note about font sizes Matthew Jennings 2025-05-05 20:01:50 +0300
  • 6ea773d802 renamed define Matthew Jennings 2025-05-05 19:41:01 +0300
  • ae27eddcab setup some interactivity with the dpad Matthew Jennings 2025-05-05 19:39:23 +0300
  • bed2d5b328 basics working on the playdate Matthew Jennings 2025-05-05 18:05:53 +0300
  • c9f0390e39
    Fix anchor to Clay_CustomElementConfig Sam El-Borai 2025-05-05 15:34:44 +0200
  • 52759cd028
    [Debug] Update Clay__RenderDebugLayoutSizing to handle more sizing types. (#392) João Matos 2025-05-05 01:27:55 +0100
  • fb4eec93b2
    [Renderers/SDL3] Use SDL_Texture instead of SDL_Surface for images (#402) David Delassus 2025-05-05 02:27:41 +0200
  • 3e3493efce [Examples/SDL3] Display sample image David Delassus 2025-05-03 14:08:57 +0200
  • 518cbdf519
    [Examples/SDL3] Load sample image as a texture David Delassus 2025-05-03 12:57:23 +0200
  • 47eeb78acd
    [Renderers/SDL3] Use textures instead of surfaces when rendering images David Delassus 2025-05-03 12:57:01 +0200
  • e4e7b113a9
    [Bindings/Odin] Updated odin bindings with new clip config (#397) Hayden Gray 2025-05-02 00:02:40 -0400
  • b17904438e Fix example reference to scroll and regenerate bindings Nic Barker 2025-05-02 16:00:46 +1200
  • 8533c15912 updated odin bindings with new clip config A1029384756 2025-05-01 23:48:17 -0400
  • 90b45f059c [Core] Fix a bug with the implementation of clip .childOffset Nic Barker 2025-05-01 17:21:09 +1200
  • ea8288158e
    [Bindings/Odin] Odin Raylib renderer rewrite (#395) Rats 2025-04-30 21:31:05 -0500
  • 970919e1fb
    [Core] Replace .scroll config with .clip (#376) Nic Barker 2025-05-01 14:11:31 +1200
  • fd281f4f86 Switch .scroll usage to .clip 014-clip-config Nic Barker 2025-05-01 13:41:42 +1200
  • 220a52b6d3 [Bindings/Odin] Move repeated rounding into proc Rats 2025-04-30 20:16:50 -0500
  • 563b858483 Added include guard Matthew Nagy 2025-04-30 23:51:48 +0000
  • f422f4d5b3 [Bindings/Odin] Clean up Odin Raylib renderer rats159 2025-04-30 13:30:35 -0500
  • f9ebeced60 [Core] Replace .scroll config with .clip Nic Barker 2025-04-10 12:02:18 +1200
  • 313964132c [Renderers/Raylib] Pin raylib version to 5.5 Nic Barker 2025-04-29 12:42:33 +1200
  • a21b0665fe [Core] Correctly throw an error when using attach to element id with an invalid id Nic Barker 2025-04-29 12:31:54 +1200
  • d6ed6cb5c2 [Core] Add cascading property support for text element configs. tritao 2025-04-24 19:10:33 +0100
  • 71e511151b [Debug] Update Clay__RenderDebugLayoutSizing to handle more sizing types. tritao 2025-04-24 15:17:19 +0100
  • f3007a8607 [Core] Update Clay__OpenTextElement to return element id of text element. tritao 2025-04-24 15:15:33 +0100
  • 42474ab3e9 [Core] Add Clay_GetPointerData function to the public API. tritao 2025-04-24 19:06:54 +0100
  • 84ef28c89c [Core] Add Clay_GetPointerOverIds function to the public API. tritao 2025-04-24 15:13:15 +0100
  • bae8b2ea25 [Core] Add Clay_GetCurrentElementId function to the public API. tritao 2025-04-24 15:08:23 +0100
  • b33ba4ff62
    [Core] Fix a string hash bug with single characters (#384) Nic Barker 2025-04-16 20:16:05 +1200
  • 0acf72c1b6 sokol master branch 014-single-char-hash Nic Barker 2025-04-16 20:07:43 +1200
  • f88f0517f7
    [Documentation] Fix Clay_String definition in README.md file. (#374) Jackson Novak 2025-04-16 03:07:16 -0500
  • 2088e5e04e [Core] Fix a string hash bug with single characters Nic Barker 2025-04-15 12:00:46 +1200
  • 5391a259f3
    [Renderers/Raylib] Fix raylib renderer border bottom left corner radius (#378) Tim Lügger 2025-04-14 04:26:12 +0200
  • fe2d44a888
    [Renderers/Raylib] Add explicit type cast for malloc (#379) Lily Nikitin 2025-04-13 19:23:13 -0700
  • 3dcb2eae39
    add explicit type cast for malloc Lily Nikitin 2025-04-13 14:14:31 -0700
  • e0243994c1
    fix raylib renderer border bottom left corner radius Tim Lügger 2025-04-13 14:08:40 +0200
  • 06167b4f4b [Core] Fix a potential null pointer deref in scroll GetScrollContainerData Nic Barker 2025-04-12 11:27:10 +1200
  • 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
  • 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