From b2981727aaf23de28f727c8e1d1ca1bdc10b9827 Mon Sep 17 00:00:00 2001 From: Alexander Heinrich Date: Sat, 31 Dec 2022 17:55:34 +0100 Subject: [PATCH] Add missing type definitions to raymath --- lib/raylib-zig-math.zig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/raylib-zig-math.zig b/lib/raylib-zig-math.zig index 95bd497..61f8a15 100755 --- a/lib/raylib-zig-math.zig +++ b/lib/raylib-zig-math.zig @@ -5,8 +5,16 @@ const Quaternion = rl.Quaternion; const Vector2 = rl.Vector2; const Vector3 = rl.Vector3; const Vector4 = rl.Vector4; -const float16 = rl.float16; + +// Undefined, see "technical restrictions" in README.md const float3 = rl.float3; +// pub const float3 = extern struct { +// v: [3]f32, +// }; + +pub const float16 = extern struct { + v: [16]f32, +}; pub extern fn Clamp(value: f32, min: f32, max: f32) f32; pub extern fn Lerp(start: f32, end: f32, amount: f32) f32;