Texture must now implement Image
This commit is contained in:
parent
57e6a9ff21
commit
7b28419432
|
@ -6,14 +6,12 @@ import "image"
|
|||
// Texture is a handle that points to a 2D raster image managed by the backend.
|
||||
type Texture interface {
|
||||
io.Closer
|
||||
image.Image
|
||||
|
||||
// Clip returns a smaller section of this texture, pointing to the same
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in New Issue