split up user / testing definitions
This commit is contained in:
@@ -23,17 +23,6 @@ pub const Triangle = struct {
|
||||
bufb: *i32,
|
||||
bufc: *i32,
|
||||
};
|
||||
pub var vec = Vec3{
|
||||
.a = Point{ .x = 20, .y = 30, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
.b = Point{ .x = 50, .y = 40, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
.c = Point{ .x = 30, .y = 1, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
};
|
||||
pub var vec2 = Vec3{
|
||||
.a = Point{ .x = 20, .y = 20, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
.b = Point{ .x = 50, .y = 30, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
.c = Point{ .x = 30, .y = 1, .z = 0, .direction = .{ .x = 1, .y = 1, .z = 1 } },
|
||||
};
|
||||
pub var obj: [10]Vec3 = undefined;
|
||||
|
||||
pub fn pixel(buffer: []u8, w: Winsize, x: i64, y: i64, symbol: u21) !void {
|
||||
const i: usize = @intCast(4 * (x + y * w.ws_col));
|
||||
|
||||
Reference in New Issue
Block a user