From b14d757363d9985e3b831009cff615a8692ed63a Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Fri, 30 Aug 2024 22:05:09 +1200 Subject: [PATCH] Update README.md --- bindings/odin/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/odin/README.md b/bindings/odin/README.md index b1a8577..d1a3e47 100644 --- a/bindings/odin/README.md +++ b/bindings/odin/README.md @@ -40,6 +40,7 @@ import clay "clay-odin" minMemorySize: c.uint32_t = clay.MinMemorySize() memory := make([^]u8, minMemorySize) arena: clay.Arena = clay.CreateArenaWithCapacityAndMemory(minMemorySize, memory) +clay.Initialize(arena) ``` 3. Provide a `measureText(text, config)` proc "c" with [clay.SetMeasureTextFunction(function)](https://github.com/nicbarker/clay/blob/main/README.md#clay_setmeasuretextfunction) so that clay can measure and wrap text.