From e860747f4c0f5ee4f0b8041b75173acf08c9cbe7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 9 Nov 2024 18:37:38 +0900 Subject: [PATCH] examples/lines: refactoring --- examples/lines/main.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/examples/lines/main.go b/examples/lines/main.go index 975ec0f09..b4f767c25 100644 --- a/examples/lines/main.go +++ b/examples/lines/main.go @@ -27,18 +27,6 @@ import ( "github.com/hajimehoshi/ebiten/v2/vector" ) -var ( - whiteImage = ebiten.NewImage(3, 3) - - // whiteSubImage is an internal sub image of whiteImage. - // Use whiteSubImage at DrawTriangles instead of whiteImage in order to avoid bleeding edges. - whiteSubImage = whiteImage.SubImage(image.Rect(1, 1, 2, 2)).(*ebiten.Image) -) - -func init() { - whiteImage.Fill(color.White) -} - const ( screenWidth = 640 screenHeight = 480 @@ -47,9 +35,6 @@ const ( type Game struct { counter int - vertices []ebiten.Vertex - indices []uint16 - aa bool showCenter bool }