by fast_rx » Aug 19, 2004 @ 5:26am
Ok... Since I needed to make the move to PF0.8 anyway, I went ahead and made the modifications. Here's a zip with the modified files, plus a demo app of how it can be used.
The one thing I probably could have done was to figure out how to write this in the algo2d.h file instead of repeating a lot of code. Also, there is just an empty function for the cases involving GenericRaster2D, since I don't know exactly what you'd do with that.
I also notice that the 'assert()' parts are missing. I assume they aren't needed and removed them from the additions as well.
Note: The img source and alpha source MUST be the same width, or you'll get strange things.
I also have written Additive and Subtractive blit functions as well that are good for explosions and things - and you don't have the slowdown of using a custom shader. I can also 'donate' these as well, but I thought I'd wait and hear what comments are made - especially with reguards to putting the stuff in algo2d.h
Maybe my name will be forever remembered in the pocketfrog source code like Frank Z's... :D
- Attachments
-
AlphaMods.zip
- (63.94 KiB) Downloaded 640 times