Sander Schobers
0f03760e66
Refactored Size (on Renderer) to return geom.Point instead of geom.PointF32. Refactored Width and Height (on Texture) to return int instead of float32. Refactored texture dimensions to be represented by ints instead of float32s.
12 lines
201 B
Go
12 lines
201 B
Go
package ui
|
|
|
|
import "opslag.de/schobers/geom"
|
|
|
|
type Texture interface {
|
|
Destroy() error
|
|
Height() int
|
|
Width() int
|
|
}
|
|
|
|
func SizeOfTexture(t Texture) geom.Point { return geom.Pt(t.Width(), t.Height()) }
|