mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
examples/fontvector: refactoring
This commit is contained in:
parent
881d3b2018
commit
746fbc7b5c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user