From 7b28419432b491783a49a2af6bc2ac96f2c5bb27 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 4 Sep 2023 12:07:29 -0400 Subject: [PATCH] Texture must now implement Image --- canvas/texture.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/canvas/texture.go b/canvas/texture.go index 8dd89e8..ba72304 100644 --- a/canvas/texture.go +++ b/canvas/texture.go @@ -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 {