graphics: Remove u/v functions

This commit is contained in:
Hajime Hoshi 2016-10-27 12:59:22 +09:00
parent 8c793ce53b
commit 2c4dc3681a

View File

@ -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