notes about why this doesn't work

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-19 08:48:10 -06:00
parent 0f71a67096
commit 8540387ab7
2 changed files with 12 additions and 1 deletions

View File

@ -40,14 +40,20 @@ func init() {
showOptions() showOptions()
go simpleStdin()
config.Set("width", 640) config.Set("width", 640)
config.Set("height", 480) config.Set("height", 480)
config.Set("glDrift", 0.01) config.Set("glDrift", 0.01)
// config.Set("filename", "planetfall.glsl") // config.Set("filename", "planetfall.glsl")
config.Set("filename", "seascape.glsl") config.Set("filename", "seascape.glsl")
// I think this doesn't work as a goroutine because
// opengl closes. This plugin probably has to wait
// until there is some sort of protobuf + socket interface
// instead of a plugin
pixelgl.Run(run) pixelgl.Run(run)
go simpleStdin()
} }
// this must be defined for plugin's, but is never run // this must be defined for plugin's, but is never run

View File

@ -18,6 +18,11 @@ import (
func showOptions() { func showOptions() {
fmt.Println("") fmt.Println("")
fmt.Println("Enter:") fmt.Println("Enter:")
fmt.Println("")
fmt.Println("This doesn't work because it's stalled in the toolkit init()")
fmt.Println("opengl isn't happy if you try to run it as a goroutine and exits")
fmt.Println("maybe there is someone that actually knows what the are doing that can fix that")
fmt.Println("")
fmt.Println("'l': list all widgets") fmt.Println("'l': list all widgets")
fmt.Println("'b': for buttons") fmt.Println("'b': for buttons")
fmt.Println("'g': try opengl") fmt.Println("'g': try opengl")