mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
gpu,op/clip: implement dashed stroked paths
Signed-off-by: Sebastien Binet <s@sbinet.org>
This commit is contained in:
committed by
Elias Naur
parent
ac14320bec
commit
e71bf13c9a
@@ -33,6 +33,7 @@ const (
|
||||
TypeCursor
|
||||
TypePath
|
||||
TypeStroke
|
||||
TypeDash
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -61,6 +62,7 @@ const (
|
||||
TypeCursorLen = 1 + 1
|
||||
TypePathLen = 1 + 4
|
||||
TypeStrokeLen = 1 + 4 + 4 + 1 + 1
|
||||
TypeDashLen = 1 + 4 + 1
|
||||
)
|
||||
|
||||
func (t OpType) Size() int {
|
||||
@@ -90,6 +92,7 @@ func (t OpType) Size() int {
|
||||
TypeCursorLen,
|
||||
TypePathLen,
|
||||
TypeStrokeLen,
|
||||
TypeDashLen,
|
||||
}[t-firstOpIndex]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user