aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorsam-anthony <samanthony6@protonmail.com>2022-04-05 21:32:40 -0230
committersam-anthony <samanthony6@protonmail.com>2022-04-05 21:32:40 -0230
commit4cbd64e7ab6d976496c5e36c1ebae7526eceb375 (patch)
tree782847bc2f94d593e4e66d89195efcb46e0f4d02 /main.go
parent6634b3ff6bcdffbab38a049460ae6ea3cd68944f (diff)
downloadvolute-4cbd64e7ab6d976496c5e36c1ebae7526eceb375.zip
display points on compressor map
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 82847bd..49ff70f 100644
--- a/main.go
+++ b/main.go
@@ -133,7 +133,9 @@ func init() {
func main() {
wnd := g.NewMasterWindow("volute", 400, 200, 0)
- g.EnqueueNewTextureFromRgba(compressorImage, func(tex *g.Texture) {
+ go updateCompImg()
+ m := <-updatedCompImg
+ g.EnqueueNewTextureFromRgba(m, func(tex *g.Texture) {
compressorTexture = tex
})