Builder
A builder for Triangles that assumes the exact number of vertexes and indices is known
Fields
- vertexes:std.ArrayList(Vertex)
- std.ArrayList(Vertex)
- indices:std.ArrayList(Vertex.Index)
- std.ArrayList(Vertex.Index)
- bounds:Rect.Physical
w and h is max_x and max_y
Functions
- appendVertex
Appends a vertex and updates the bounds
- appendTriangles
Triangles must be counter-clockwise (y going down) to avoid backface culling
- build
Asserts that the entire array has been filled
- build_unowned
Creates
Triangles, ignoring any extra capacity.