mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphicsutil: Remove unused arguments
This commit is contained in:
parent
95561bbf6b
commit
5d37c331bb
@ -73,11 +73,11 @@ func QuadVertices(width, height int, sx0, sy0, sx1, sy1 int, geom GeoM) []float3
|
|||||||
wf := float32(w)
|
wf := float32(w)
|
||||||
hf := float32(h)
|
hf := float32(h)
|
||||||
u0, v0, u1, v1 := float32(sx0)/wf, float32(sy0)/hf, float32(sx1)/wf, float32(sy1)/hf
|
u0, v0, u1, v1 := float32(sx0)/wf, float32(sy0)/hf, float32(sx1)/wf, float32(sy1)/hf
|
||||||
quadVerticesImpl(vs, wf, hf, u0, v0, u1, v1, x0, y0, x1, y1, geom)
|
quadVerticesImpl(vs, u0, v0, u1, v1, x0, y0, x1, y1, geom)
|
||||||
return vs
|
return vs
|
||||||
}
|
}
|
||||||
|
|
||||||
func quadVerticesImpl(vs []float32, wf, hf, u0, v0, u1, v1, x0, y0, x1, y1 float32, geom GeoM) {
|
func quadVerticesImpl(vs []float32, u0, v0, u1, v1, x0, y0, x1, y1 float32, geom GeoM) {
|
||||||
x, y := geom.Apply(x0, y0)
|
x, y := geom.Apply(x0, y0)
|
||||||
// Vertex coordinates
|
// Vertex coordinates
|
||||||
vs[0] = x
|
vs[0] = x
|
||||||
|
Loading…
Reference in New Issue
Block a user