コード例 #1
0
ファイル: shiny.go プロジェクト: achille-roussel/go-vu
func newGraphicContext(w screen.Window) *graphicContext {
	gc := &graphicContext{
		window:     w,
		StateStack: graphic.MakeStateStack(),
	}
	gc.join.Add(1)
	return gc
}
コード例 #2
0
ファイル: mobile.go プロジェクト: achille-roussel/go-vu
func newGraphicContext(app app.App, ctx gl.Context) *graphicContext {
	gc := &graphicContext{
		app:        app,
		ctx:        ctx,
		StateStack: graphic.MakeStateStack(),
	}
	gc.join.Add(1)
	return gc
}