Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created February 18, 2010 23:26
Show Gist options
  • Save swannodette/308212 to your computer and use it in GitHub Desktop.
Save swannodette/308212 to your computer and use it in GitHub Desktop.
(defn display [[delta time] state]
(clear)
(load-identity)
(translate -1.5 0.0 -6.0)
(draw-triangles
(doall (map #(apply vertex %) *tri*)))
(translate 3.0 0.0 0.0)
(draw-quads
(doall (map #(apply vertex %) *sqr*)))
(app/repaint!))
(defn display-proxy [& args]
(apply display args))
(def app-options {:reshape reshape
:display display-proxy
:init init})
(defn start []
(app/start app-options {}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment