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 g.vertices[i].SrcY = 1
} }
{ screen.DrawTriangles(g.vertices, g.indices, whiteSubImage, &ebiten.DrawTrianglesOptions{
op := &ebiten.DrawTrianglesOptions{} AntiAlias: true,
op.AntiAlias = true })
screen.DrawTriangles(g.vertices, g.indices, whiteSubImage, op)
}
} }
func (*Game) Layout(width, height int) (int, int) { func (*Game) Layout(width, height int) (int, int) {