mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
parent
a310b7c5bb
commit
a57042ebef
@ -287,7 +287,7 @@ func (p *Path) Arc(x, y, radius, startAngle, endAngle float32, dir Direction) {
|
|||||||
func (p *Path) AppendVerticesAndIndicesForFilling(vertices []ebiten.Vertex, indices []uint16) ([]ebiten.Vertex, []uint16) {
|
func (p *Path) AppendVerticesAndIndicesForFilling(vertices []ebiten.Vertex, indices []uint16) ([]ebiten.Vertex, []uint16) {
|
||||||
// TODO: Add tests.
|
// TODO: Add tests.
|
||||||
|
|
||||||
var base uint16
|
base := uint16(len(vertices))
|
||||||
for _, seg := range p.segs {
|
for _, seg := range p.segs {
|
||||||
if len(seg) < 3 {
|
if len(seg) < 3 {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user