diff org/touch.org @ 340:4f5a5d5f1613

added time dialation display for test suite.
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Jul 2012 11:18:47 -0500
parents 698d48b91cd5
children 5205535237fb 42ddfe406c0a
line wrap: on
line diff
     1.1 --- a/org/touch.org	Sat Jul 21 10:03:02 2012 -0500
     1.2 +++ b/org/touch.org	Sat Jul 21 11:18:47 2012 -0500
     1.3 @@ -552,6 +552,9 @@
     1.4          standard-debug-controls
     1.5          
     1.6          (fn [world]
     1.7 +          (let [timer (IsoTimer. 60)]
     1.8 +            (.setTimer world timer)
     1.9 +            (display-dilated-time world timer))
    1.10            (if record?
    1.11              (Capture/captureVideo
    1.12               world
    1.13 @@ -566,6 +569,9 @@
    1.14               (File. "/home/r/proj/cortex/render/touch-cube/touch/"))))))))
    1.15  #+end_src
    1.16  
    1.17 +#+results: test-touch-1
    1.18 +: #'cortex.test.touch/test-basic-touch
    1.19 +
    1.20  ** Basic Touch Demonstration
    1.21  
    1.22  #+begin_html
    1.23 @@ -656,6 +662,9 @@
    1.24          standard-debug-controls
    1.25          
    1.26          (fn [world]
    1.27 +          (let [timer (IsoTimer. 60)]
    1.28 +            (.setTimer world timer)
    1.29 +            (display-dilated-time world timer))
    1.30            (if record? 
    1.31              (Capture/captureVideo 
    1.32               world
    1.33 @@ -670,6 +679,9 @@
    1.34               (File. "/home/r/proj/cortex/render/worm-touch/touch/"))))))))
    1.35  #+end_src
    1.36  
    1.37 +#+results: test-touch-2
    1.38 +: #'cortex.test.touch/test-worm-touch
    1.39 +
    1.40  ** Worm Touch Demonstration 
    1.41  #+begin_html
    1.42  <div class="figure">
    1.43 @@ -747,11 +759,14 @@
    1.44  (ns cortex.test.touch
    1.45    (:use (cortex world util sense body touch))
    1.46    (:use cortex.test.body)
    1.47 -  (:import com.aurellem.capture.Capture)
    1.48 +  (:import (com.aurellem.capture Capture IsoTimer))
    1.49    (:import java.io.File)
    1.50    (:import (com.jme3.math Vector3f ColorRGBA)))
    1.51  #+end_src
    1.52  
    1.53 +#+results: test-touch-header
    1.54 +: com.jme3.math.ColorRGBA
    1.55 +
    1.56  * Source Listing
    1.57    - [[../src/cortex/touch.clj][cortex.touch]]
    1.58    - [[../src/cortex/test/touch.clj][cortex.test.touch]]