geek++;

Aug 03, 2004 23:51

Tonight, I started on Calyx again. I started with the display/hardware layer. One of my design requirements was alpha-blending support in the system ( Read more... )

Leave a comment

Comments 1

dingodonkey August 3 2004, 21:26:18 UTC
What the hell was that clipByte function written that way for? That's a very, very simple operation, especially for unsigned math. My only concern in changing something like that would be the length of the type being unnecessarily clunky, but looking through the code it looks like that's already optimised.

It's funny how that blending method looks like it should be the obvious thing you'd think to do (it uses decently fast instructions and is fairly simple), but how you know that had you not seen the algorithm already, you'd probably have come up with something entirely different. At least that's how I feel about it.

Good work condensing it.

Reply


Leave a comment

Up