CPAL

Altough PAL is working great for me with Common Lisp I occasionally like to play with other languages (Haskell and PLT Scheme currently) and it would be nice to have some easy to use graphics library when testing out a new language. So I decided to make a slimmed down C version of PAL that would be easy to interface from higher level languages.
Like PAL, CPAL is a fairly thin layer on top of SDL and OpenGL with a procedural interface for graphics, text (like PAL it currently uses Haaf’s Game Engine’s fontbuilder) and basic sfx. It is probably a bit unconvenient to use from C or C++ but if you want a fast and easy to use 2d graphics library for your favorite HLL it shouldn’t take more than an hour to write the bindings.

Here are the sources with prebuilt MSVC binaries (if you use a dynamic FFI like Pythons Ctypes or Common Lisp CFFI all you need is the .dll). It is only one source file and should work with at least Windows XP and Linux (tested on Ubuntu 7.10). Primitive form of documentation is also included.

Note: original PAL is still actively developed and recommended for your Common Lisp graphics needs.

Leave a Reply

You must be logged in to post a comment.