This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;cl-opengl, load toon shader | |
(require :asdf) | |
(asdf:load-system :cl-opengl) | |
(asdf:load-system :cl-glu) | |
(asdf:load-system :cl-glut) | |
(defun file->string (path) | |
"Sucks up an entire file from PATH into a freshly-allocated string, | |
returning two values: the string and the number of bytes read." | |
(with-open-file (s path) |