(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites

This commit is contained in:
peter1138
2011-12-24 23:33:45 +00:00
parent dc497258d6
commit 3ef77e55c5
7 changed files with 130 additions and 69 deletions

View File

@@ -17,6 +17,14 @@
/** The most trivial 32 bpp blitter (without palette animation). */
class Blitter_32bppSimple : public Blitter_32bppBase {
struct Pixel {
uint8 r; ///< Red-channel
uint8 g; ///< Green-channel
uint8 b; ///< Blue-channel
uint8 a; ///< Alpha-channel
uint8 m; ///< Remap-channel
uint8 v; ///< Brightness-channel
};
public:
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
/* virtual */ void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);