noffle committed use a user-supplied render *symbol*Latest: 3f77a55 on 9/9/2018, 7:57:54 PM | |
📄 | README.md |
📄 | hello.lisp |
📄 | nix_setup.sh |
README.md
Common Lisp + OpenGL: Hello World
A simple lisp file that runs a tiny OpenGL program that you can make live edits to using Emacs and SLIME.
Requirements
- SDL2
- Emacs
- SBCL
- SLIME (
M-x package-install<RET>slime<RET>
) - Add
(setq inferior-lisp-program "/run/current-system/sw/bin/sbcl")
to your~/.emacs
. (or whatever the path tosbcl
is) - Quicklisp (Common Lisp package manager)
Usage
- Open
hello.lisp
in emacs - Run
slime
in emacs - Run
(ql:quickload "sdl2")
and(ql:quickload "cl-opengl")
in the newly createdCL-USER
repl. They'll be loaded if on your computer already, or downloaded if not. C-c C-k
to compile + load the file- run
(main)
in the REPL to begin - make changes to the source file (like vertex colours) and type
C-c C-k
again to live reload
Built with git-ssb-web