Added a Bounds() method to Texture

This commit is contained in:
Sasha Koshka 2023-09-04 01:28:04 -04:00
parent b629b4eb4e
commit 63a67e40d1
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ type Texture interface {
// internal data. Becaue of this, closing a clipped section will close
// the original texture as well.
Clip (image.Rectangle) Texture
// Bounds returns the size of this texture.
Bounds () image.Rectangle
}
type protectedTexture struct {