19 lines
353 B
Zig
19 lines
353 B
Zig
const std = @import("std");
|
|
|
|
const Position = @import("./position.zig");
|
|
|
|
const Buffers = @This();
|
|
|
|
allocator: std.mem.Allocator,
|
|
points: std.ArrayList(Position) = .empty,
|
|
|
|
pub fn init(gpa: std.mem.Allocator) Buffers {
|
|
return Buffers{
|
|
.allocator = gpa
|
|
};
|
|
}
|
|
|
|
pub fn deinit(self: *Buffers) void {
|
|
self.points.deinit(self.allocator);
|
|
}
|