diff options
author | smatz <smatz@openttd.org> | 2008-06-26 15:46:19 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-26 15:46:19 +0000 |
commit | faebe10d812ac6af644d08128021d39ef06370fd (patch) | |
tree | bd97ed25466924d63b46a62ae49a31dafcb911f9 /src/blitter/32bpp_anim.hpp | |
parent | 6f3b1745c2c6c38c1642013fed627d61efa0f818 (diff) | |
download | openttd-faebe10d812ac6af644d08128021d39ef06370fd.tar.xz |
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
Diffstat (limited to 'src/blitter/32bpp_anim.hpp')
-rw-r--r-- | src/blitter/32bpp_anim.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blitter/32bpp_anim.hpp b/src/blitter/32bpp_anim.hpp index 373253deb..f26919611 100644 --- a/src/blitter/32bpp_anim.hpp +++ b/src/blitter/32bpp_anim.hpp @@ -34,6 +34,8 @@ public: /* virtual */ Blitter::PaletteAnimation UsePaletteAnimation(); /* virtual */ const char *GetName() { return "32bpp-anim"; } + + template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom); }; class FBlitter_32bppAnim: public BlitterFactory<FBlitter_32bppAnim> { |