Commit graph

407 commits

Author SHA1 Message Date
emin
bf75f5c8a1
Merge e70dd31cec into 4c2c778861 2026-04-10 13:05:54 -07:00
Nicholas Sidwell
4c2c778861
[Renderers/SDL3] Update pointer state every frame in SDL3 simple demo (#585)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
Co-authored-by: Nicholas Sidwell <nicholas@sidwell.dev>
2026-04-10 09:10:54 +10:00
github-actions[bot]
f70b8c7ff3 [bindings/odin] Update Odin bindings
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2026-04-07 01:46:48 +00:00
Nic Barker
2d4862dc6f [Core] Fix a small issue where subtrees of exiting element were deleted too early 2026-04-02 13:22:45 +11:00
github-actions[bot]
cfee7e8376 [bindings/odin] Update Odin bindings
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2026-04-02 02:14:07 +00:00
Nic Barker
b28b540826 [Core] Fix transitions triggering on parent scroll, fix single frame glitch for exiting transitions 2026-04-02 13:13:21 +11:00
Nic Barker
66bbb81215
[Documentation] Update floating .attachPoints graphic in README
Some checks are pending
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Waiting to run
Odin Bindings Update / check_changes (push) Waiting to run
Odin Bindings Update / build (macos-latest) (push) Blocked by required conditions
Odin Bindings Update / build (ubuntu-latest) (push) Blocked by required conditions
Odin Bindings Update / commit (push) Blocked by required conditions
2026-04-02 09:06:55 +11:00
github-actions[bot]
5845951a5f [bindings/odin] Update Odin bindings
Some checks are pending
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Waiting to run
Odin Bindings Update / check_changes (push) Waiting to run
Odin Bindings Update / build (macos-latest) (push) Blocked by required conditions
Odin Bindings Update / build (ubuntu-latest) (push) Blocked by required conditions
Odin Bindings Update / commit (push) Blocked by required conditions
2026-03-31 23:21:13 +00:00
Nic Barker
99502d1bc5 [Core] Fix C++ cast issue 2026-04-01 10:20:27 +11:00
github-actions[bot]
f27ddf3eed [bindings/odin] Update Odin bindings 2026-03-31 20:15:48 +00:00
Nic Barker
65111f03a3 [Core] Reattach exit transitions with deleted parents 2026-04-01 07:15:08 +11:00
github-actions[bot]
13c6ce71a7 [bindings/odin] Update Odin bindings 2026-03-31 20:01:32 +00:00
Nic Barker
3b180667bf [C++] Fix c++ typecast in Clay_EaseOut 2026-04-01 07:00:29 +11:00
github-actions[bot]
3b3902d9df [bindings/odin] Update Odin bindings 2026-03-31 11:27:05 +00:00
Nic Barker
94223e3265 Add Clay_EaseOut to clay.h 2026-03-31 22:26:14 +11:00
github-actions[bot]
d8e589f506 [bindings/odin] Update Odin bindings 2026-03-31 09:41:48 +00:00
Nic Barker
ee192f48c5
[Core] Transition API (#579) 2026-03-31 20:41:02 +11:00
github-actions[bot]
40350e593a [bindings/odin] Update Odin bindings 2026-03-30 00:52:10 +00:00
Bach Le
3be87f190b
Fix Clay__GetParentElementId for new id scheme (#521) 2026-03-30 11:51:26 +11:00
emin
e70dd31cec
clay webgpu renderer 2026-03-06 22:51:54 -06:00
Luke 10X
76ec3632d8
[Renderers/GLES3] 📦 GLES3 renderer and demo examples using it (#565)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
- **Initialize Window**:
  - Successfully created a GLFW window with dimensions 1280x720.
  - Set up window hints for OpenGL version and core profile, enabling multisampling, and enabling depth testing.

- **Setup Renderer**:
  - Initialized the Clay rendering context with a memory arena and dimensions.
  - Set up the measure text and render text functions using stb_image.h and stb_truetype.h.
  - Initialized the GLES3 renderer with 4096 texture units.
  - Loaded a Roboto-Regular font atlas and set it as the default font for rendering.

- **Main Loop**:
  - Called `Clay_UpdateScrollContainers` to handle scroll events.
  - Set the layout dimensions and cleared the color buffer and depth buffer.
  - Render the Clay video demo layout.
  - Swapped the window buffers to display the rendered video.

- **Cleanup**:
  - Cleaned up the GLFW window and renderer resources when the application is closed.

This setup provides a basic framework for rendering videos in GLES3 with GLFW, leveraging stb_image.h for asset loading and Clay for the rendering engine.

- Configure GLFW and SDL2 in the main files
- Fix the video bugs in the main file

🪝 Stb dependency to be managed with cmake in examples

💀 Allow clients to configure headers, also expose Gles3_Renderer through
header-only mode

🧹 Quality of life: automatically set screen dimensions to renderer

Before users had to set them manually

📚 **🎨 Renderers/GLES3:** Improve round-rectangle clipping with uniform border thickness

Implemented improvements to the renderer for GLES3, ensuring better handling of rounded rectangles with borders, making the layout more visually appealing.

- Added two new functions `RenderHeaderButton1`, `RenderHeaderButton2`, and `RenderHeaderButton3` for creating header buttons with different styles.
- Updated the `CreateLayout` function to include these new buttons in the right panel.
- Added a TODO note for handling the outer radius calculation, as it seems to be incorrect in the current implementation.

- Replace `bl_i + B` and `br_i + B` with `bl` and `br` respectively to simplify the code.
- Simplify the logic for checking pixel inside the inner rounded rect by directly using `innerLocal`.

📥 Change borders to be inset

- Fixed incorrect border calculation in the shader.
- Added support for inset borders by adjusting the boundary calculations based on `CLAY_BORDERS_ARE_INSET`.

This change also gives the renderer more choice in handling different border styles.

🏗️ CMake builds for GLES3 renderer examples
2025-12-30 18:52:27 +11:00
github-actions[bot]
7d099ad870 [bindings/odin] Update Odin bindings
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-12-23 06:29:55 +00:00
Rats
681e085cd4
[Core] Include floating element count in text id hash (#567) 2025-12-23 17:29:09 +11:00
Isaiah Paget
389a044cd2
[Bindings/Odin] Fixed incorrect assignment in README example (#533)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-12-05 14:23:56 +11:00
github-actions[bot]
2749e56e7e [bindings/odin] Update Odin bindings
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-11-26 04:12:20 +00:00
TotallyGamerJet
0c8e300524
[Core] Update Clay_OnHover to take void* instead of uintptr_t (#334) 2025-11-26 15:11:34 +11:00
Yang Zhang
7a9a976d42
Remove unneeded semicolon so that Odin compiler won't fail with -strict-style -vet (#514) 2025-11-26 13:38:34 +11:00
Rats
c13feb2428
[Bindings/Odin] Improve example text measurement function (#541)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-11-12 09:46:20 +11:00
Daniel Mayovskiy
fd97d8179e
[Renderers/termbox] fixed horizontal text culling bug (#525)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-10-23 12:58:39 +11:00
Daniel Mayovskiy
7216815536
Fixed termbox2 demo build, added scroll functionality (#523) 2025-10-23 12:57:11 +11:00
Thomas Anderson
83129995f7
[Examples/official-website] updated paths in build.sh 2025-10-23 12:56:20 +11:00
Daniel Mayovskiy
588b93196c
[Renderers/termbox] Fixing termbox2-image-demo build error (#524)
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-10-02 11:21:11 +10:00
github-actions[bot]
382dcde89d [bindings/odin] Update Odin bindings 2025-10-02 01:17:05 +00:00
elmfrain
c6442bd192
[Bug Fix] Multiple Floating Elements Cannot Use Clay_Hovered() (#461)
Co-authored-by: Nic Barker <contact+github@nicbarker.com>
2025-10-02 11:14:17 +10:00
Nic Barker
7874cdb085 Fix README update
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / check_changes (push) Has been cancelled
Odin Bindings Update / build (macos-latest) (push) Has been cancelled
Odin Bindings Update / build (ubuntu-latest) (push) Has been cancelled
Odin Bindings Update / commit (push) Has been cancelled
2025-09-29 13:27:40 +10:00
github-actions[bot]
37675089e3 [bindings/odin] Update Odin bindings 2025-09-16 01:40:04 +00:00
Nic Barker
1cbc56cbf2
[Core] Remove ID from element declaration struct and split clay macro into CLAY and CLAY_WITHID (#492) 2025-09-16 11:39:07 +10:00
github-actions[bot]
0d6969c8c3 [bindings/odin] Update Odin bindings 2025-09-08 02:15:33 +00:00
Víctor López
958d684b3c
[Compilers] Fix struct with default initializer not using CLAY__DEFAULT_STRUCT (#498) 2025-09-08 12:14:05 +10:00
Rats
f55513493b
[Bindings/Odin] Fix ID procedure ignoring index (#496) 2025-09-08 12:13:00 +10:00
github-actions[bot]
dabf8214a8 [bindings/odin] Update Odin bindings 2025-09-08 02:12:08 +00:00
fgungor
747643e84e
[Core] fix unused extra macro param in CLAY_SID_LOCAL (#505) 2025-09-08 12:10:10 +10:00
rivten
5a0d301c60
[Renderers/Sokol] allow usage of images with sokol renderer (#489)
Co-authored-by: Hugo Viala <h.viala@ganacos.com>
Co-authored-by: Andrew Sampson <1297077+andrewmd5@users.noreply.github.com>
2025-09-08 11:35:18 +10:00
Andrew Sampson
1bc5105272
[Renderers/Sokol] Text measurement/rendering width mismatch in sokol_clay (#480) 2025-08-19 12:14:13 +10:00
github-actions[bot]
61bab7bba6 [bindings/odin] Update Odin bindings 2025-08-14 23:38:20 +00:00
Nic Barker
7f767d2301 [Core] Increase the default scroll container limit to 100 2025-08-15 09:37:23 +10:00
Daniel S Jeremiah
2b192409b9
[Documentation] -- updated README (#475) 2025-08-14 10:02:23 +10:00
github-actions[bot]
91c6d05774 [bindings/odin] Update Odin bindings 2025-07-15 23:32:23 +00:00
Nic Barker
4aa3d75bef [Core] Split base ID hash from index ID hash 2025-07-16 09:30:54 +10:00
Hayden Gray
9d38edb989
[Bindings/Odin] SizingFit and SizingGrow default parameters (#462) 2025-07-09 09:07:10 +10:00