~2:*~A - ~A


 

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.


 

Package Overview

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.


 

Simple Example

This example was created with the following code:

Width and Height

(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))))))
      
  1. LISPBUILDER-SDL-GFX
    1. Abstract
    2. Package Overview
    3. Simple Example
    4. Compatibility
    5. Download
    6. Installation
    7. Usage
    8. Examples
    9. Dependencies
    10. License
    11. LISPBUILDER-SDL-GFX dictionary
      1. INDEX
    12. Acknowledgements

 

The ~A dictionary Index

    ~{
  1. ~:*~A ~}

 

Compatibility

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

 

Download


 

Installation

See the LISPBUILDER documentation for installation instructions.


 

Using LISPBUILDER-SDL-GFX

See the LISPBUILDER documentation for Usage instructions.


 

Running Examples in LISPBUILDER-SDL-GFX-EXAMPLES

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:


 

Dependencies

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


 

License

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


 

The ~A dictionary