2 (glfw:do-window
(:title
"A Simple Example")
3 ((gl:with-setup-projection
4 (glu:perspective
45 4/3 0.1 50)))
5 (gl:clear gl
:+color-buffer-bit
+)
7 (gl:translate-f
0 0 -
5)
8 (gl:rotate-f
(* 10 (glfw:get-time
)) 1 1 0)
9 (gl:rotate-f
(* 90 (glfw:get-time
)) 0 0 1)
10 (gl:with-begin gl
:+triangles
+
11 (gl:color-3f
1 0 0) (gl:vertex-3f
1 0 0)
12 (gl:color-3f
0 1 0) (gl:vertex-3f -
1 1 0)
13 (gl:color-3f
0 0 1) (gl:vertex-3f -
1 -
1 0)))