Mercurial > cortex
comparison org/util.org @ 108:92b857b6145d
slow implementation of UV-mapped touch is complete
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 15 Jan 2012 04:08:31 -0700 |
parents | 77b506ac64f3 |
children | 9d0fe7f54e14 |
comparison
equal
deleted
inserted
replaced
107:53fb379ac678 | 108:92b857b6145d |
---|---|
451 | 451 |
452 (extend-type com.jme3.scene.Geometry | 452 (extend-type com.jme3.scene.Geometry |
453 Textual | 453 Textual |
454 (text [control] | 454 (text [control] |
455 (println "...geo..."))) | 455 (println "...geo..."))) |
456 | |
457 (extend-type Triangle | |
458 Textual | |
459 (text [t] | |
460 (println "Triangle: " \newline (.get1 t) \newline | |
461 (.get2 t) \newline (.get3 t)))) | |
462 | |
456 #+end_src | 463 #+end_src |
457 | 464 |
458 Here I make the =Viewable= protocol and extend it to JME's types. Now | 465 Here I make the =Viewable= protocol and extend it to JME's types. Now |
459 JME3's =hello-world= can be written as easily as: | 466 JME3's =hello-world= can be written as easily as: |
460 | 467 |