mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
graphics: Remove u/v functions
This commit is contained in:
parent
8c793ce53b
commit
2c4dc3681a
@ -38,14 +38,6 @@ func floatsToInt16s(xs ...float64) []int16 {
|
||||
return r
|
||||
}
|
||||
|
||||
func u(x, width2p int) int16 {
|
||||
return int16(math.MaxInt16 * x / width2p)
|
||||
}
|
||||
|
||||
func v(y, height2p int) int16 {
|
||||
return int16(math.MaxInt16 * y / height2p)
|
||||
}
|
||||
|
||||
func vertices(parts ImageParts, width, height int, geo *GeoM) []int16 {
|
||||
// TODO: This function should be in graphics package?
|
||||
totalSize := graphics.QuadVertexSizeInBytes() / 2
|
||||
|
Loading…
Reference in New Issue
Block a user