diff --git a/lib/preludes/raygui-prelude.zig b/lib/preludes/raygui-prelude.zig index 8426fd6..a10d04c 100644 --- a/lib/preludes/raygui-prelude.zig +++ b/lib/preludes/raygui-prelude.zig @@ -5,6 +5,8 @@ pub const cdef = @import("raygui-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); + std.testing.refAllDecls(rl); } pub const RayguiError = error{GetIcons}; diff --git a/lib/preludes/raylib-prelude.zig b/lib/preludes/raylib-prelude.zig index 905316f..99e4207 100644 --- a/lib/preludes/raylib-prelude.zig +++ b/lib/preludes/raylib-prelude.zig @@ -12,6 +12,9 @@ const C = std.builtin.CallingConvention.c; test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); + std.testing.refAllDecls(gl); + std.testing.refAllDecls(math); } pub const RaylibError = error{ diff --git a/lib/preludes/raymath-prelude.zig b/lib/preludes/raymath-prelude.zig index 7d762f2..e55495e 100644 --- a/lib/preludes/raymath-prelude.zig +++ b/lib/preludes/raymath-prelude.zig @@ -7,6 +7,7 @@ pub const cdef = @import("raymath-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); } const Matrix = rl.Matrix; diff --git a/lib/preludes/rlgl-prelude.zig b/lib/preludes/rlgl-prelude.zig index 6cc08d6..6ec4536 100644 --- a/lib/preludes/rlgl-prelude.zig +++ b/lib/preludes/rlgl-prelude.zig @@ -7,6 +7,7 @@ pub const cdef = @import("rlgl-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); } const Matrix = rl.Matrix; diff --git a/lib/raygui.zig b/lib/raygui.zig index 55ed6c4..8a3179f 100644 --- a/lib/raygui.zig +++ b/lib/raygui.zig @@ -5,6 +5,8 @@ pub const cdef = @import("raygui-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); + std.testing.refAllDecls(rl); } pub const RayguiError = error{GetIcons}; diff --git a/lib/raylib.zig b/lib/raylib.zig index 9d6000b..b154c03 100644 --- a/lib/raylib.zig +++ b/lib/raylib.zig @@ -12,6 +12,9 @@ const C = std.builtin.CallingConvention.c; test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); + std.testing.refAllDecls(gl); + std.testing.refAllDecls(math); } pub const RaylibError = error{ @@ -57,12 +60,12 @@ pub const Vector2 = extern struct { /// Vector with components value 0.0 pub fn zero() Vector2 { - return Vector2{ .x = 0.0, .y = 0.0 }; + return math.vector2Zero(); } /// Vector with components value 1.0 pub fn one() Vector2 { - return Vector2{ .x = 1.0, .y = 1.0 }; + return math.vector2One(); } /// Add two vectors (v1 + v2) @@ -225,12 +228,12 @@ pub const Vector3 = extern struct { // Vector with components value 0.0 pub fn zero() Vector3 { - return Vector3{ .x = 0.0, .y = 0.0, .z = 0.0}; + return math.vector3Zero(); } /// Vector with components value 1.0 pub fn one() Vector3 { - return Vector3{ .x = 1.0, .y = 1.0, .z = 1.0}; + return math.vector3One(); } /// Add two vectors @@ -443,12 +446,12 @@ pub const Vector4 = extern struct { /// Vector with components value 0.0 pub fn zero() Vector4 { - return Vector4{.x = 0.0, .y = 0.0, .z = 0.0, .w = 0.0}; + return math.vector4Zero(); } /// Vector with components value 1.0 pub fn one() Vector4 { - return Vector4{.x = 1.0, .y = 1.0, .z = 1.0, .w = 1.0}; + return math.vector4One(); } /// Add two vectors @@ -1836,7 +1839,6 @@ pub const KeyboardKey = enum(c_int) { //menu = 82, volume_up = 24, volume_down = 25, - _, }; pub const MouseButton = enum(c_int) { diff --git a/lib/raymath.zig b/lib/raymath.zig index 20e8f5e..faf42e2 100644 --- a/lib/raymath.zig +++ b/lib/raymath.zig @@ -7,6 +7,7 @@ pub const cdef = @import("raymath-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); } const Matrix = rl.Matrix; diff --git a/lib/rlgl.zig b/lib/rlgl.zig index 7846dd7..1b42266 100644 --- a/lib/rlgl.zig +++ b/lib/rlgl.zig @@ -7,6 +7,7 @@ pub const cdef = @import("rlgl-ext.zig"); test { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(cdef); } const Matrix = rl.Matrix;