1 USING: kernel namespaces math.vectors opengl 4DNav.turtle
6 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 : camera-eye ( -- point ) turtle-pos> ;
10 : camera-focus ( -- point )
11 [ 1 step-turtle turtle-pos> ] save-self ;
13 : camera-up ( -- dirvec )
14 [ 90 pitch-up turtle-pos> 1 step-turtle turtle-pos> swap v- ]
17 : do-look-at ( camera -- )
18 [ >self camera-eye camera-focus camera-up gl-look-at ]