nicbarker / clay

High performance UI layout library in C.
https://nicbarker.com/clay
zlib License
1.29k stars 31 forks source link

[bindings/odin] Improve Odin bindings #13

Closed FourteenBrush closed 3 months ago

FourteenBrush commented 3 months ago

Some other considerations:

nicbarker commented 3 months ago

Maybe remove the need for clay.ID in components, and pass the id string instead?

It would certainly make things more ergonomic - but I have plans to turn the result of clay.ID into a richer datatype than u32 in future, and it will be less painful in terms of breaking changes if I can just swap the return type and params underneath 🙂

nicbarker commented 3 months ago

Oops, pressed the close button by mistake.

nicbarker commented 3 months ago

I will merge this a little later today when I have time 👍