zntg/ui/texture.go
Sander Schobers 0f03760e66 Added Resize & SetIcon to Renderer.
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.
2020-12-13 07:40:19 +01:00

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()) }