C++20 Support (#31)

This commit is contained in:
Nic Barker 2024-09-29 12:53:46 +13:00 committed by GitHub
parent 21d9f06a47
commit 948b7ce70b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 371 additions and 246 deletions

View file

@ -394,13 +394,15 @@ The supported directives are:
- `CLAY_EXTEND_CONFIG_IMAGE` - Provide additional struct members to `CLAY_IMAGE_CONFIG` that will be passed through with output render commands.
- `CLAY_EXTEND_CONFIG_CUSTOM` - Provide additional struct members to `CLAY_IMAGE_CONFIG` that will be passed through with output render commands.
### Bindings
### Bindings for non C
Clay is usable out of the box as a `.h` include in both C99 and C++ with designated initializer support.
Clay is usable out of the box as a `.h` include in both C99 and C++20 with designated initializer support.
There are also supported bindings for other languages, including:
- [Odin Bindings](https://github.com/nicbarker/clay/tree/main/bindings/odin)
Unfortunately clay does **not** support Microsoft C11 or C17 via MSVC at this time.
### Debug Tools
Clay includes built-in UI debugging tools, similar to the "inspector" in browsers such as Chrome or Firefox. These tools are included in `clay.h`, and work by injecting additional render commands into the output [Clay_RenderCommandArray](#clay_rendercommandarray).