Re-ran generator for OpenGL 4.1 and new extensions
[cl-glfw.git] / examples / simple.lisp
blob911b197c849f8a9a1dc810787c7dd0ad8c9b8506
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+)
6 (gl:load-identity)
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)))