appendTriangles
Triangles must be counter-clockwise (y going down) to avoid backface culling
Asserts that points is a multiple of 3
Parameters
- self:*Builder
- *Builder
- points:[]const Vertex.Index
- []const Vertex.Index
Source
Implementation
pub fn appendTriangles(self: *Builder, points: []const Vertex.Index) void {
std.debug.assert(points.len % 3 == 0);
self.indices.appendSliceAssumeCapacity(points);
}