Abstract
LISPBUILDER-SDL-IMAGE provides a Lisp wrapper for the SDL_Image library. LISPBUILDER-SDL-IMAGE has a dependency on the LISPBUILDER-SDL package. LISPBUILDER-SDL-IMAGE is distributed under the MIT-style license.
LISPBUILDER-SDL-IMAGE supports the following image formats: TGA, BMP, PNM, PBM, PGM, PPM, XPM, XCF, PCX , GIF, JPG, TIF, LBM and PNG.
Current Version: The current version of LISPBUILDER-SDL-IMAGE is version 0.2.
LISPBUILDER-SDL-IMAGE supports the following image formats: TGA, BMP, PNM, PBM, PGM, PPM, XPM, XCF, PCX , GIF, JPG, TIF, LBM and PNG.
LISPBUILDER-SDL-IMAGE will attempt to automatically load an image by using the Magic Number in the image file. For image formats that have no magic number such as targa (.TGA), the LISPBUILDER-SDL-IMAGE API allows the image type to be specified as a parameter.
Functions and symbols exported from the LISPBUILDER-SDL-IMAGE package are
accessible from the LISPBUILDER-SDL-IMAGE:
prefix or the
shorter form SDL-IMAGE:
nickname.
Note that additional libraries are required to load JPG, PNG and TIFF images:
This example was created with the following code:
(sdl:with-init () (sdl:window 320 240) (sdl:draw-surface (sdl-image:load-image "lisp.tga" :image-type :TGA)) (sdl:with-events () (:quit-event () t) (:video-expose-event (sdl:update-display))))
The following table describes the status of the Lisp implementations that have been tested with LISPBUILDER-SDL-IMAGE:
Lisp Implementation | LISPBUILDER-SDL-IMAGE 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 in the LISPBUILDER-SDL-IMAGE-EXAMPLES package:
(asdf:operate 'asdf:load-op :lispbuilder-sdl-image-examples)
The following examples are contained in the package LISPBUILDER-SDL-IMAGE-EXAMPLES:
LISPBUILDER-SDL-IMAGE has a dependency on LISPBUILDER-SDL.
LISPBUILDER-SDL-IMAGE is distributed under the MIT-style license.