func newGraphicContext(w screen.Window) *graphicContext { gc := &graphicContext{ window: w, StateStack: graphic.MakeStateStack(), } gc.join.Add(1) return gc }
func newGraphicContext(app app.App, ctx gl.Context) *graphicContext { gc := &graphicContext{ app: app, ctx: ctx, StateStack: graphic.MakeStateStack(), } gc.join.Add(1) return gc }