Skip to content

Commit

Permalink
examples/lines: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Nov 9, 2024
1 parent 1a42372 commit e860747
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions examples/lines/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,9 +35,6 @@ const (
type Game struct {
counter int

vertices []ebiten.Vertex
indices []uint16

aa bool
showCenter bool
}
Expand Down

0 comments on commit e860747

Please sign in to comment.