appendVertex
Appends a vertex and updates the bounds
Parameters
Source
Implementation
pub fn appendVertex(self: *Builder, v: Vertex) void {
self.vertexes.appendAssumeCapacity(v);
self.bounds.x = @min(self.bounds.x, v.pos.x);
self.bounds.y = @min(self.bounds.y, v.pos.y);
self.bounds.w = @max(self.bounds.w, v.pos.x);
self.bounds.h = @max(self.bounds.h, v.pos.y);
}