diff options
| author | Jeff Carr <[email protected]> | 2024-02-19 08:28:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-19 08:28:54 -0600 |
| commit | 27b8e82e1d59880381fc0047f2ef90b423124a5d (patch) | |
| tree | 1b1a6f879855ba1e9de20cfae78557ca55392cb0 /stdin.go | |
| parent | cddced4bc8e963c9e5a2af17c8e024a52bbc3c90 (diff) | |
doesn't quite load when a pluginv0.0.1
it works in init(), but if one
tries to load it from the STDIN goroutine
it flips out. something opengl related that is gone
perhaps. anyway. it's a nice clean demo of opengl
maybe someone that actually knows what they are doing
can make a button work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'stdin.go')
| -rw-r--r-- | stdin.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -8,6 +8,8 @@ import ( "strconv" "strings" + "github.com/faiface/pixel/pixelgl" + "github.com/gookit/config" "go.wit.com/log" "go.wit.com/toolkits/tree" "go.wit.com/widget" @@ -18,7 +20,7 @@ func showOptions() { fmt.Println("Enter:") fmt.Println("'l': list all widgets") fmt.Println("'b': for buttons") - fmt.Println("'g': load gocui plugin") + fmt.Println("'g': try opengl") fmt.Println("'a': load andlabs plugin") fmt.Println("'d': enable debugging") fmt.Println("'p': panic plugin") @@ -57,7 +59,11 @@ func simpleStdin() { log.Log(NOW, "show buttons") tree.ShowButtons() case "g": - me.myTree.SendToolkitLoad("gocui") + config.Set("width", 1024) + config.Set("height", 768) + config.Set("glDrift", 0.01) + config.Set("filename", "seascape.glsl") + pixelgl.Run(run) case "a": me.myTree.SendToolkitLoad("andlabs") case "d": |
