mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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
|
||||
}
|
||||
|
||||
{
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user