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 /main.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 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -14,6 +14,7 @@ import ( "go.wit.com/toolkits/tree" "github.com/faiface/pixel/pixelgl" + "github.com/gookit/config" ) //go:embed *.glsl @@ -39,9 +40,10 @@ func init() { showOptions() - // This parses the command line arguments - parseConfig() - + config.Set("width", 640) + config.Set("height", 480) + config.Set("glDrift", 0.01) + config.Set("filename", "seascape.glsl") pixelgl.Run(run) go simpleStdin() @@ -51,7 +53,11 @@ func init() { // I assume it's for testing the code in a stand alone way func main() { // This parses the command line arguments - parseConfig() + // parseConfig() + config.Set("width", 1024) + config.Set("height", 768) + config.Set("glDrift", 0.01) + config.Set("filename", "seascape.glsl") pixelgl.Run(run) } |
