#11158 - regularkid - Sat Sep 27, 2003 6:52 pm
I'm drawing stuff to the screen in mode 4 (256 color palettized) without the use of sprites (just straight up video buffer access). However, I would like to do transparency as well, but I don't want it to be horrendously slow. So first off, my drawing code will be in RAM using ARM assembly. However, it will still be slow if I use an 'if' for every pixel to check if it is palette index 0 before drawing it. I was thinking I could use a masking technique, but that would require loading the pixel currently already in the video buffer and then doing some sort of bitwise operations on it using the pixel I want to draw, which might just be as slow as an 'if'. Anyone have any ideas on how to do quick transparency in code? Thanks!
_________________
- RegularKid
_________________
- RegularKid