golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
121.13k stars 17.37k forks source link

x/mobile/exp/sprite: pass config.Event to arrangers #11761

Open hyangah opened 8 years ago

hyangah commented 8 years ago

As shown in https://go-review.googlesource.com/#/c/12339/ arranger functions may need the screen dimension info. The CL work around the problem using a global var, but a better approach is to let the sprite engine provides the info it already has.

@nigeltao @crawshaw

nigeltao commented 8 years ago

Should a paint.Event contain a config.Event? Should we do the same for touch.Event?

(Just thinking out loud...)

nigeltao commented 8 years ago

(I realize that that's sort of tangential to the sprite's arrangers.)