examples/fontvector: refactoring

This commit is contained in:
Hajime Hoshi 2022-11-25 23:44:48 +09:00
parent 881d3b2018
commit 746fbc7b5c

View File

@ -141,11 +141,9 @@ func (g *Game) Draw(screen *ebiten.Image) {
g.vertices[i].SrcY = 1
}
{
op := &ebiten.DrawTrianglesOptions{}
op.AntiAlias = true
screen.DrawTriangles(g.vertices, g.indices, whiteSubImage, op)
}
screen.DrawTriangles(g.vertices, g.indices, whiteSubImage, &ebiten.DrawTrianglesOptions{
AntiAlias: true,
})
}
func (*Game) Layout(width, height int) (int, int) {