Skip to content

Instantly share code, notes, and snippets.

@l1x
Forked from jlongster/gist:d21c7c4c077d4d64806f
Last active August 29, 2015 14:22
Show Gist options
  • Save l1x/32cb6f7f7881cd797d2f to your computer and use it in GitHub Desktop.
Save l1x/32cb6f7f7881cd797d2f to your computer and use it in GitHub Desktop.
(go
(let [chans
(sequence
brushes
(comp
(map
(fn [[name brush]]
(if (:texture brush)
(load-texture (:texture brush)))))
(filter identity)))
textures (<! (async/into [] chans))]
{:gl gl
:driver driver
:programs programs
:pers pers
:textures textures}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment