Created
January 21, 2013 05:58
-
-
Save joekarma/4583919 to your computer and use it in GitHub Desktop.
Interact with SDL window live, per http://code.google.com/p/lispbuilder/wiki/PortableInteractiveDevelopment
This file contains hidden or 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
(defun draw-frame () | |
(sdl:clear-display sdl:*black*) | |
(sdl:draw-box-* 0 0 100 100) | |
(sdl:update-display)) | |
(sdl:with-init () | |
(sdl:window 1024 768) | |
(sdl:with-events () | |
(:quit-event () t) | |
(:idle () | |
(let ((connection | |
(or swank::*emacs-connection* (swank::default-connection)))) | |
(when (and connection (not (eql swank:*communication-style* :spawn))) | |
(swank::handle-requests connection t))) | |
(draw-frame)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment