Added VBO example.
[cl-glfw/jecs.git] / examples / listmodes.lisp
blob8bd3bb28d8d4dd372d29f2f224c5ed066ea42870
1 (require '#:asdf)
2 (asdf:oos 'asdf:load-op '#:cl-glfw)
4 (glfw:init)
6 (destructuring-bind (width height redbits greenbits bluebits) (glfw:get-desktop-mode)
7 (format t "Desktop mode: ~d x ~d x ~d~%" width height (+ redbits greenbits bluebits)))
9 (format t "Available modes:~%")
10 (loop for i from 0
11 for mode in (glfw:get-video-modes 400)
12 do (destructuring-bind (width height redbits greenbits bluebits) mode
13 (format t "~3d: ~d x ~d x ~d~%" i width height (+ redbits greenbits bluebits))))
15 (glfw:terminate)