diff --git a/bindings/odin/clay-odin/clay.odin b/bindings/odin/clay-odin/clay.odin index 3de636f..78496b1 100644 --- a/bindings/odin/clay-odin/clay.odin +++ b/bindings/odin/clay-odin/clay.odin @@ -102,6 +102,7 @@ TextAlignment :: enum EnumBackingType { } TextElementConfig :: struct { + userData: rawptr, textColor: Color, fontId: u16, fontSize: u16, diff --git a/bindings/odin/clay-odin/linux/clay.a b/bindings/odin/clay-odin/linux/clay.a index e6e9f5e..4c3abd3 100644 Binary files a/bindings/odin/clay-odin/linux/clay.a and b/bindings/odin/clay-odin/linux/clay.a differ diff --git a/bindings/odin/clay-odin/macos-arm64/clay.a b/bindings/odin/clay-odin/macos-arm64/clay.a index af30258..e144c3f 100644 Binary files a/bindings/odin/clay-odin/macos-arm64/clay.a and b/bindings/odin/clay-odin/macos-arm64/clay.a differ diff --git a/bindings/odin/clay-odin/macos/clay.a b/bindings/odin/clay-odin/macos/clay.a index 542be49..8719dd4 100644 Binary files a/bindings/odin/clay-odin/macos/clay.a and b/bindings/odin/clay-odin/macos/clay.a differ diff --git a/bindings/odin/clay-odin/wasm/clay.o b/bindings/odin/clay-odin/wasm/clay.o index 2207763..002d759 100644 Binary files a/bindings/odin/clay-odin/wasm/clay.o and b/bindings/odin/clay-odin/wasm/clay.o differ diff --git a/bindings/odin/clay-odin/windows/clay.lib b/bindings/odin/clay-odin/windows/clay.lib index ca2699a..7659f80 100644 Binary files a/bindings/odin/clay-odin/windows/clay.lib and b/bindings/odin/clay-odin/windows/clay.lib differ diff --git a/bindings/odin/examples/clay-official-website/clay-official-website.odin b/bindings/odin/examples/clay-official-website/clay-official-website.odin index d96b01b..d97e321 100644 --- a/bindings/odin/examples/clay-official-website/clay-official-website.odin +++ b/bindings/odin/examples/clay-official-website/clay-official-website.odin @@ -489,7 +489,7 @@ errorHandler :: proc "c" (errorData: clay.ErrorData) { } main :: proc() { - minMemorySize: u32 = clay.MinMemorySize() + minMemorySize: c.size_t = cast(c.size_t)clay.MinMemorySize() memory := make([^]u8, minMemorySize) arena: clay.Arena = clay.CreateArenaWithCapacityAndMemory(minMemorySize, memory) clay.Initialize(arena, {cast(f32)raylib.GetScreenWidth(), cast(f32)raylib.GetScreenHeight()}, { handler = errorHandler }) diff --git a/examples/clay-official-website/build/clay/index.html b/examples/clay-official-website/build/clay/index.html index 1e07d31..e626e4b 100644 --- a/examples/clay-official-website/build/clay/index.html +++ b/examples/clay-official-website/build/clay/index.html @@ -119,6 +119,7 @@ {name: 'bottomRight', type: 'float'}, ]}; let textConfigDefinition = { name: 'text', type: 'struct', members: [ + { name: 'userData', type: 'uint32_t' }, { name: 'textColor', ...colorDefinition }, { name: 'fontId', type: 'uint16_t' }, { name: 'fontSize', type: 'uint16_t' }, diff --git a/examples/clay-official-website/build/clay/index.wasm b/examples/clay-official-website/build/clay/index.wasm index 5e94900..e57e631 100755 Binary files a/examples/clay-official-website/build/clay/index.wasm and b/examples/clay-official-website/build/clay/index.wasm differ diff --git a/examples/clay-official-website/index.html b/examples/clay-official-website/index.html index 1e07d31..e626e4b 100644 --- a/examples/clay-official-website/index.html +++ b/examples/clay-official-website/index.html @@ -119,6 +119,7 @@ {name: 'bottomRight', type: 'float'}, ]}; let textConfigDefinition = { name: 'text', type: 'struct', members: [ + { name: 'userData', type: 'uint32_t' }, { name: 'textColor', ...colorDefinition }, { name: 'fontId', type: 'uint16_t' }, { name: 'fontSize', type: 'uint16_t' },