Luke J Crook <[EMAIL PROTECTED]> kirjoitti Sat, 27 Jan 2007 07:23:04 +0200:

> I have updated the lispbuilder-sdl-ttf package in SVN and uploaded the
> API documentation to lispbuilder.sourceforge.net
>
> This package is now actually useful. I created a glue library to pass
> the SDL_Color structs by value to the SDL_ttf render-* functions. CFFI
> only supports passing structs by reference. This is why the previous
> version of this package did not support setting the font color.
>
> I would appreciate if folks would test the Makefiles by attempting to
> build the glue library.
>
> I have built the library using MingW in Windows.
>
> The build instructions are at:
>
> lispbuilder.sourceforge.net/lispbuilder-sdl-ttf.html
>
> I have not yet added the glue library to the
> win32-lispbuilder-sdl-ttf-binaries package.
>
> Thanks,
> - Luke
> _______________________________________________
> application-builder mailing list
> [email protected]
> http://www.lispniks.com/mailman/listinfo/application-builder
Depending on the hw architecture it might be possible to get away with  
using something like:

(cffi:defcfun ("TTF_RenderText_Blended" render-text-blended) new-image
   (font :pointer) (text :string) (color :uint32))

(sdl:render-text-blended font string (+ (ash b 16) (ash g 8) r))

instead of using c wrapper routines. This is what I have previously used  
with Win32 & Linux x86 and it seems to work fine.
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to