Added a Bounds() method to Texture
This commit is contained in:
parent
b629b4eb4e
commit
63a67e40d1
|
@ -11,6 +11,9 @@ type Texture interface {
|
||||||
// internal data. Becaue of this, closing a clipped section will close
|
// internal data. Becaue of this, closing a clipped section will close
|
||||||
// the original texture as well.
|
// the original texture as well.
|
||||||
Clip (image.Rectangle) Texture
|
Clip (image.Rectangle) Texture
|
||||||
|
|
||||||
|
// Bounds returns the size of this texture.
|
||||||
|
Bounds () image.Rectangle
|
||||||
}
|
}
|
||||||
|
|
||||||
type protectedTexture struct {
|
type protectedTexture struct {
|
||||||
|
|
Loading…
Reference in New Issue