Upgraded tomo version

This commit is contained in:
Sasha Koshka
2023-09-04 02:33:47 -04:00
parent ab80658cd9
commit f48bf0609f
3 changed files with 8 additions and 3 deletions

View File

@@ -40,6 +40,11 @@ func NewTextureFrom (source image.Image) *Texture {
return texture
}
// Bounds returns the bounding rectangle of this texture.
func (this *Texture) Bounds () image.Rectangle {
return this.rect
}
// Opaque reports whether or not the texture is fully opaque.
func (this *Texture) Opaque () bool {
return !this.transparent