~2:*~A - ~A


 

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.


 

Package Overview

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:


 

Simple Example

This example was created with the following code:

Alien Technology

  (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))))
      
  1. LISPBUILDER-SDL-IMAGE
    1. Abstract
    2. Package Overview
    3. Simple Example
    4. Compatibility
    5. Download
    6. Installation
    7. Usage
    8. Examples
    9. Dependencies
    10. License
    11. The ~A dictionary
      1. ~{
      2. ~:*~A ~}
    12. Acknowledgements

 

Compatibility

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

 

Download


 

Installation

See the LISPBUILDER documentation for installation instructions.


 

Using LISPBUILDER-SDL-IMAGE

See the LISPBUILDER documentation for Usage instructions.


 

Running Examples in LISPBUILDER-SDL-IMAGE-EXAMPLES

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:


 

Dependencies

LISPBUILDER-SDL-IMAGE has a dependency on LISPBUILDER-SDL.


 

License

LISPBUILDER-SDL-IMAGE is distributed under the MIT-style license.


 

The ~A dictionary