From 8540387ab7feea5f3760f5361790ca3fd72392f8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 19 Feb 2024 08:48:10 -0600 Subject: notes about why this doesn't work Signed-off-by: Jeff Carr --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'main.go') 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 -- cgit v1.2.3