1 USING: kernel math sequences opengl turtle ;
4 : camera-eye ( -- array ) position> ;
6 : camera-focus ( -- array )
8 1 step-turtle position>
11 : camera-up ( -- array )
13 90 pitch-up position> 1 step-turtle position> swap v-
17 camera-eye first3 camera-focus first3 camera-up first3 gluLookAt ;