1 USING: kernel alien.c-types sequences opengl.gl opengl.glu ;
5 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7 : gl-color-4f ( 4seq -- ) first4 glColor4f ;
9 : gl-clear-color ( 4seq -- ) first4 glClearColor ;
11 : gl-vertex-3f ( array -- ) first3 glVertex3f ;
13 : gl-normal-3f ( array -- ) first3 glNormal3f ;
15 : gl-material-fv ( face pname params -- ) >c-float-array glMaterialfv ;
17 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19 : glu-look-at ( eye focus up -- ) >r >r first3 r> first3 r> first3 gluLookAt ;