Abstract
LISPBUILDER-SDL-GFX provides a Lisp wrapper for the SDL_gfx library, and provides support for renering several graphics primitives directly to SDL surfaces. LISPBUILDER-SDL-GFX has a dependency on the LISPBUILDER-SDL package. LISPBUILDER-SDL-GFX is distributed under the MIT-style license.
Current Version: The current version of LISPBUILDER-SDL-GFX is version 0.2.
Functions and symbols exported from the LISPBUILDER-SDL-GFX package are
accessible from the LISPBUILDER-SDL-GFX:
prefix or the
shorter form SDL-GFX:
nickname.
This example was created with the following code:
(defun width-height () (let ((width 200) (height 200)) (sdl:with-init () (sdl:window width height :title-caption "Width and Height, from Processing.org") (sdl:clear-display (sdl:color :r 127 :g 127 :b 127)) (loop for i from 0 to height by 20 do (progn (sdl-gfx:draw-box (sdl:rectangle :x 0 :y i :w 200 :h 10) :color sdl:*black*) (sdl-gfx:draw-box (sdl:rectangle :x i :y 0 :w 10 :h 200) :color sdl:*white*))) (sdl:with-events () (:quit-event () t) (:video-expose-event () (sdl:update-display))))))
~:*~A
~}
The following table describes the status of the Lisp implementations that have been tested with LISPBUILDER-SDL-GFX:
Lisp Implementation | LISPBUILDER-SDL-GFX Status | Comments | ||
---|---|---|---|---|
Win32 | Linux | MacOS | ||
CLISP v2.38 | Working | Working | No | |
Lispworks v4.4.6 Personal | Working | Working | No | |
Allegro Express 8.0 | Unknown | Unknown | No | |
OpenMCL | NA | NA | Unknown | |
SBCL | Working | Working | No |
svn co https://lispbuilder.svn.sourceforge.net/svnroot/lispbuilder lispbuilder
See the LISPBUILDER documentation for installation instructions.
See the LISPBUILDER documentation for Usage instructions.
Enter the following at the REPL to load the examples included in the LISPBUILDER-SDL-GFX-EXAMPLES package:
(asdf:operate 'asdf:load-op :lispbuilder-sdl-gfx-examples)
Run the examples by entering any of the following at the REPL:
LISPBUILDER-SDL-GFX has a dependency on LISPBUILDER-SDL.
LISPBUILDER-SDL-GFX is distributed under the MIT-style license.