Created
February 18, 2010 23:26
-
-
Save swannodette/308212 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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