On 14-03-03 02:48 PM, Greg Ewing wrote:
Lenard Lindstrom wrote:
A Pygame level production blitter would extend the simple bytecode
language to support basic arithmetic operations, different integer
sizes, as well as higher level operations such as pixel
encoding/decoding and alpha blitting. It would replace code in
alphablit.c, pixelcopy.c, and freetype/ft_render_cb.c.
Just something to consider.
This sounds very interesting, especially if it allows a
wider and more useful set of operations to be supported,
such as specifying separate combining functions for rgb
and alpha channels.
If the bytecode is exposed at the Python end then any expression can be
encoded, a different one for each channel if desired. Conceivably, a
Python expression, or function, could be compiled into a blit operation.