Upgraded tomo version
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user