Example #1
0
func newGraphicContext(w screen.Window) *graphicContext {
	gc := &graphicContext{
		window:     w,
		StateStack: graphic.MakeStateStack(),
	}
	gc.join.Add(1)
	return gc
}
Example #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
}