gpu,op/clip: implement stroked paths with round joins

Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
Sebastien Binet
2020-11-11 12:57:17 +00:00
committed by Elias Naur
parent f3f32ed7aa
commit 700cec440e
7 changed files with 90 additions and 9 deletions
+1
View File
@@ -54,6 +54,7 @@ func (p Op) Add(o *op.Ops) {
bo.PutUint32(data[13:], uint32(p.bounds.Max.Y))
bo.PutUint32(data[17:], math.Float32bits(p.width))
data[21] = uint8(p.style.Cap)
data[22] = uint8(p.style.Join)
}
// Begin the path, storing the path data and final Op into ops.