diff options
author | peter1138 <peter1138@openttd.org> | 2011-12-24 23:33:45 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2011-12-24 23:33:45 +0000 |
commit | 3ef77e55c5d552a58555f3d5eb7b7079b537fff3 (patch) | |
tree | 4a5d1131661b9fb4e94bf9409f089dae84f65f6e /src/blitter/32bpp_simple.hpp | |
parent | dc497258d68ebcd19f4e2512e7255aca344bfff0 (diff) | |
download | openttd-3ef77e55c5d552a58555f3d5eb7b7079b537fff3.tar.xz |
(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites
Diffstat (limited to 'src/blitter/32bpp_simple.hpp')
-rw-r--r-- | src/blitter/32bpp_simple.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/blitter/32bpp_simple.hpp b/src/blitter/32bpp_simple.hpp index 501cf4c26..f09920d0e 100644 --- a/src/blitter/32bpp_simple.hpp +++ b/src/blitter/32bpp_simple.hpp @@ -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); |