Michael Ben-Yosef | 19 Dec 2007 14:39
Picon
Favicon

Re: Bug in sdl:draw-pixel-* and sdl:read-pixel-*

Luke Crook wrote:
> If you are using the sdl_gfx library then you may as well use the functions in 
> lispbuilder-sdl-gfx as these functions will always be more efficient than the 
> Lisp native functions in lispbuilder-sdl. However, 90% of the functions in 
> SDL_gfx have lispbuilder-sdl equivalents.
> 
> What functions in sdl-gfx are you using?

At the moment, I'm only using sdl-gfx:draw-pixel-*. I'll be needing to 
draw some strings soon, and I will probably also use the roto-zoomer.

As you know, sdl-gfx:draw-aa-polygon gives anti-aliased polygons and 
sdl-gfx:draw-filled-polygon gives filled polygons; but I need polygons 
which are both filled and anti-aliased. :-) Hence I'm using the cl-aa 
package from cl-vectors. Now I see that the ASDF system called 
"lispbuilder-sdl-cl-vectors" provides a function, image-put-pixel, which 
can be used to get a "callback" put-pixel function for cl-aa. (I was 
just using my own callback wrapped around sdl-gfx:draw-pixel-*.) Anyway, 
I'm starting to just think out loud here.

Thanks for your help!

Michael
Michael Ben-Yosef | 19 Dec 2007 16:09
Picon
Favicon

Projects using the Application Builder

Andreas Davour wrote:
> On Wed, 19 Dec 2007, Michael Ben-Yosef wrote:
> 
>> Luke Crook wrote:
>>> If you are using the sdl_gfx library then you may as well use the functions in
>>> lispbuilder-sdl-gfx as these functions will always be more efficient than the
>>> Lisp native functions in lispbuilder-sdl. However, 90% of the functions in
>>> SDL_gfx have lispbuilder-sdl equivalents.
>>>
>>> What functions in sdl-gfx are you using?
>> At the moment, I'm only using sdl-gfx:draw-pixel-*. I'll be needing to
>> draw some strings soon, and I will probably also use the roto-zoomer.
>>
>> As you know, sdl-gfx:draw-aa-polygon gives anti-aliased polygons and
>> sdl-gfx:draw-filled-polygon gives filled polygons; but I need polygons
>> which are both filled and anti-aliased. :-) Hence I'm using the cl-aa
>> package from cl-vectors. Now I see that the ASDF system called
>> "lispbuilder-sdl-cl-vectors" provides a function, image-put-pixel, which
>> can be used to get a "callback" put-pixel function for cl-aa. (I was
>> just using my own callback wrapped around sdl-gfx:draw-pixel-*.) Anyway,
>> I'm starting to just think out loud here.
> 
> Could I bee so bold as to inquire what you're working on?

A little tennis game, which will hopefully be addictive and 
network-playable. I'll probably release it under GPL if it's good 
enough. Don't expect to see it soon, though, since I have a lot of other 
commitments at the moment.

While we're at it, to those, including you, who are happy to volunteer 
(Continue reading)

Michael Ben-Yosef | 19 Dec 2007 19:52
Picon
Favicon

Re: Projects using the Application Builder

Andreas Davour wrote:
> Sounds fun. More ways to play games and not do work is what we need! 
> Be merry. :)
> 
> My project is also about fun. I once got seduced by this:
> http://www.llamasoft.co.uk/colourspace.php
> 
> And have been trying to make something as fun and entertaining ever 
> since.

That's interesting! I hadn't heard of this concept of "lightsynth" 
before. I imagine Lisp is a great language to use to script these 
graphical performances.

Michael