summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go8
-rw-r--r--stdin.go5
2 files changed, 12 insertions, 1 deletions
diff --git a/main.go b/main.go
index ae0d33b..8b67ba3 100644
--- a/main.go
+++ b/main.go
@@ -40,14 +40,20 @@ func init() {
showOptions()
+ go simpleStdin()
+
config.Set("width", 640)
config.Set("height", 480)
config.Set("glDrift", 0.01)
// config.Set("filename", "planetfall.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)
- go simpleStdin()
}
// this must be defined for plugin's, but is never run
diff --git a/stdin.go b/stdin.go
index 47c8415..0b6d950 100644
--- a/stdin.go
+++ b/stdin.go
@@ -18,6 +18,11 @@ import (
func showOptions() {
fmt.Println("")
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("'b': for buttons")
fmt.Println("'g': try opengl")