Skip to content

Instantly share code, notes, and snippets.

@lamberta
lamberta / toon-shader.cl
Created October 24, 2009 23:34
cl-opengl, load toon shader
;;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)