|
Can I put a translucent pixel? |
Onewing
Member #6,152
August 2005
|
Using the correct drawing_mode, I can use putpixel to put a translucent pixel, but I can't get _putpixel32 to work (it just draws a solid pixel). Am I going to have to stick with plain old putpixel? ------------ |
Mark Oates
Member #1,146
March 2001
|
This doesn't directly answer your question, but I recommend trying fblend for your transparent and pattern drawing. The allegro blending functions are very slow. -- |
GullRaDriel
Member #3,861
September 2003
|
_putpixel32 is directly accessing and setting the bitmap memory data, with no processing at all. So no working drawing_mode using _putpixel32, just the ole-goud direct putpixel. "Code is like shit - it only smells if it is not yours" |
Onewing
Member #6,152
August 2005
|
That's what I thought. Thanks! ------------ |
GullRaDriel
Member #3,861
September 2003
|
I think you can compute the final color before _putpixel32'ing it. I mean something as:
I think it should be quicker than the putpixel(...) version, with some optimisations of course ! Please make a test ;-) [edited] "Code is like shit - it only smells if it is not yours" |
|