UI Windows slowly working

This commit is contained in:
2024-12-30 00:10:50 +01:00
parent 4ac24fa03c
commit 6ed67e8fcb
6 changed files with 424 additions and 123 deletions

View File

@@ -79,6 +79,18 @@ aabb_add :: (aabb: *AABB, point: Vector3) {
aabb.max.z = max(point.z, aabb.max.z);
}
operator == :: inline (a: Vector2i, b: Vector2i) -> bool {
return a.x == b.x && a.y == b.y;
}
operator + :: inline (a: Vector2i, b: Vector2i) -> Vector2i {
return .{a.x + b.x, a.y + b.y};
}
operator - :: inline (a: Vector2i, b: Vector2i) -> Vector2i {
return .{a.x - b.x, a.y - b.y};
}
operator == :: inline (a: Vector3i, b: Vector3i) -> bool {
return a.x == b.x && a.y == b.y && a.z == b.z;
}