Rune, 

I have comitted lispbuilder-sdl-ttf to SVN. I have also added your 
get-sdlcolor to util-sdl.lisp to lispbuilder-sdl in SVN. 

Now, please take a look at the changes I made to lispbuilder-sdl-ttf: 

 - I removed your hard-coded path to the ttf font. The example should now 
work on any machine.
 - I added some CFFI translate functions in "translate.lisp" to 
automatically check and translate parameters passed into 
"TTF_RenderText_Solid". So now:
   - Passing in a void pointer for 'font' will throw an error.
   - "TTF_RenderText_Solid" now accepts a vector containing the r-g-b color 
values. The CFFI translate functions will automatically create the SDL_Color 
struct and delete it after calling "TTF_RenderText_Solid".

Let me know if you have any questions. 

 -Luke
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to