notes about why this doesn't work
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0f71a67096
commit
8540387ab7
8
main.go
8
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
|
||||
|
|
5
stdin.go
5
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")
|
||||
|
|
Loading…
Reference in New Issue