Skip to content

Instantly share code, notes, and snippets.

@jlongster
Created June 1, 2015 20:55
Show Gist options
  • Save jlongster/d21c7c4c077d4d64806f to your computer and use it in GitHub Desktop.
Save jlongster/d21c7c4c077d4d64806f 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