lispbuilder-sdl and lispbuilder-sdl-image now both support SDL_image
1.2.10. Please let the list know of any problems/bugs.

lispbuilder-sdl will now automatically support additional image
formats if at runtime if the SDL_image (and associated png/tif/jpg)
library can be loaded. It is no longer necessary to call
sdl-image:load-image to load e.g. a JPG image. If SDL_image is not
available at runtime then only the BMP format is supported.

Existing code can still use sdl-image without modification.

SDL_image 1.2.10 supports new functions to pre-load the jpg/png/tif
libraries. These new functions are optional. If these are not called
then the libraries are loaded on demand as is the current behaviour.
These functions are:

- init-image
Example: (sdl:init-image :jpg :png :tif)
This is optional.

- quit-image
Will close any pre-loaded libraries
Call this if INIT-IMAGE is used

The following from sdl-image are now also available in lispbuilder-sdl;

- image-init-p
Example (sdl:image-init-p :jpg :png)

- supported-image-formats
Lists the currently supported image formats. If only the SDL library
is available, then :BMP is supported. If SDL_image is available, then
more formats are available.

- image-p
Returns T if image is of the specified type.

- image-type-of
Returns the image format for the image

- image-supported-p
Returns T if the image can be loaded.
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to