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