Add all subfiles to refAllDecls
This commit is contained in:
parent
8e04b7098a
commit
01869ab291
8 changed files with 20 additions and 7 deletions
|
|
@ -5,6 +5,8 @@ pub const cdef = @import("raygui-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
|
std.testing.refAllDecls(rl);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const RayguiError = error{GetIcons};
|
pub const RayguiError = error{GetIcons};
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ const C = std.builtin.CallingConvention.c;
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
|
std.testing.refAllDecls(gl);
|
||||||
|
std.testing.refAllDecls(math);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const RaylibError = error{
|
pub const RaylibError = error{
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ pub const cdef = @import("raymath-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Matrix = rl.Matrix;
|
const Matrix = rl.Matrix;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ pub const cdef = @import("rlgl-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Matrix = rl.Matrix;
|
const Matrix = rl.Matrix;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ pub const cdef = @import("raygui-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
|
std.testing.refAllDecls(rl);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const RayguiError = error{GetIcons};
|
pub const RayguiError = error{GetIcons};
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ const C = std.builtin.CallingConvention.c;
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
|
std.testing.refAllDecls(gl);
|
||||||
|
std.testing.refAllDecls(math);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const RaylibError = error{
|
pub const RaylibError = error{
|
||||||
|
|
@ -57,12 +60,12 @@ pub const Vector2 = extern struct {
|
||||||
|
|
||||||
/// Vector with components value 0.0
|
/// Vector with components value 0.0
|
||||||
pub fn zero() Vector2 {
|
pub fn zero() Vector2 {
|
||||||
return Vector2{ .x = 0.0, .y = 0.0 };
|
return math.vector2Zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Vector with components value 1.0
|
/// Vector with components value 1.0
|
||||||
pub fn one() Vector2 {
|
pub fn one() Vector2 {
|
||||||
return Vector2{ .x = 1.0, .y = 1.0 };
|
return math.vector2One();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add two vectors (v1 + v2)
|
/// Add two vectors (v1 + v2)
|
||||||
|
|
@ -225,12 +228,12 @@ pub const Vector3 = extern struct {
|
||||||
|
|
||||||
// Vector with components value 0.0
|
// Vector with components value 0.0
|
||||||
pub fn zero() Vector3 {
|
pub fn zero() Vector3 {
|
||||||
return Vector3{ .x = 0.0, .y = 0.0, .z = 0.0};
|
return math.vector3Zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Vector with components value 1.0
|
/// Vector with components value 1.0
|
||||||
pub fn one() Vector3 {
|
pub fn one() Vector3 {
|
||||||
return Vector3{ .x = 1.0, .y = 1.0, .z = 1.0};
|
return math.vector3One();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add two vectors
|
/// Add two vectors
|
||||||
|
|
@ -443,12 +446,12 @@ pub const Vector4 = extern struct {
|
||||||
|
|
||||||
/// Vector with components value 0.0
|
/// Vector with components value 0.0
|
||||||
pub fn zero() Vector4 {
|
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
|
/// Vector with components value 1.0
|
||||||
pub fn one() Vector4 {
|
pub fn one() Vector4 {
|
||||||
return Vector4{.x = 1.0, .y = 1.0, .z = 1.0, .w = 1.0};
|
return math.vector4One();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add two vectors
|
/// Add two vectors
|
||||||
|
|
@ -1836,7 +1839,6 @@ pub const KeyboardKey = enum(c_int) {
|
||||||
//menu = 82,
|
//menu = 82,
|
||||||
volume_up = 24,
|
volume_up = 24,
|
||||||
volume_down = 25,
|
volume_down = 25,
|
||||||
_,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const MouseButton = enum(c_int) {
|
pub const MouseButton = enum(c_int) {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ pub const cdef = @import("raymath-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Matrix = rl.Matrix;
|
const Matrix = rl.Matrix;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ pub const cdef = @import("rlgl-ext.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
std.testing.refAllDecls(@This());
|
std.testing.refAllDecls(@This());
|
||||||
|
std.testing.refAllDecls(cdef);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Matrix = rl.Matrix;
|
const Matrix = rl.Matrix;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue