Share

Common Lisp bindings for SDL

Code

Programming Languages: C, Lisp

License: MIT License

Repositories

browse code, statistics cvs -d:pserver:anonymous@cl-sdl.cvs.sourceforge.net:/cvsroot/cl-sdl login

cvs -z3 -d:pserver:anonymous@cl-sdl.cvs.sourceforge.net:/cvsroot/cl-sdl co -P modulename

Show:

What's happening?

  • Comment: add constants into sdl package for keysyms

    bad example, it's actually sdl:+k-escape+ as I have written the patch.

    2009-06-25 04:43:22 UTC by tril

  • add constants into sdl package for keysyms

    I transcribed these from SDL_keysym.h, enjoy. Please apply this patch into the code as it's a feature of SDL missing from cl-sdl. This will allow you to write (= key sdl:+k-esc+) instead of (= key (char-code #\Esc)), for example. Thank you.

    2009-06-25 04:42:26 UTC by tril

  • support mouse buttons over 3

    cl-sdl only returns events for mouse buttons 1-3. I used the following hack to return the actual button state instead of intercepting and filtering it, so I can support the scroll wheel in my program (buttons 4-5). Please implement more buttons cleanly in the wrapper so I do not have to resort to modifying cl-sdl. Perhaps return the button state as I have done, and provide macros to logior...

    2009-06-25 04:32:46 UTC by tril

  • structure pointer to SDL_Color passed instead of structure

    It appears to be impossible with UFFI to pass a structure by value. It can only pass pointers to structures. Therefore all SDL bindings which reference SDL_Color parameters, are expected to be passed by value (C embeds the struct members on the stack), but CL passes the pointer instead. I have worked around this for the function I needed (TTF_RenderGlyph_Blended) by changing the...

    2009-06-25 04:00:46 UTC by tril

  • Comment: add gluProject and gluUnProject

    I posted this. I meant to log in first.

    2009-06-25 02:47:47 UTC by tril

  • add gluProject and gluUnProject

    I use these functions and they work. Please add them to the distribution. Thanks.

    2009-06-25 02:46:29 UTC by nobody

Our Numbers