diff options
author | smatz <smatz@openttd.org> | 2008-06-10 17:28:37 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-10 17:28:37 +0000 |
commit | 4ce73a679c850a77238fbcfe8a32df97e1fd3e58 (patch) | |
tree | 9b86c3dfce63438b38fa8e9dd9532b8880cf12bb /src/blitter/32bpp_optimized.hpp | |
parent | 199b3d7886ad7ca96d2a0cbb79276f40f812d09b (diff) | |
download | openttd-4ce73a679c850a77238fbcfe8a32df97e1fd3e58.tar.xz |
(svn r13445) -Codechange: make 32bpp_optimized blitter ~10-20% faster in drawing (depends on architecture and compiler)
Diffstat (limited to 'src/blitter/32bpp_optimized.hpp')
-rw-r--r-- | src/blitter/32bpp_optimized.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blitter/32bpp_optimized.hpp b/src/blitter/32bpp_optimized.hpp index 46c30ec25..099aaa159 100644 --- a/src/blitter/32bpp_optimized.hpp +++ b/src/blitter/32bpp_optimized.hpp @@ -14,6 +14,9 @@ public: /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); /* virtual */ const char *GetName() { return "32bpp-optimized"; } + + template <BlitterMode mode, ZoomLevel zoom> void Draw(Blitter::BlitterParams *bp); + template <BlitterMode mode> void Draw(Blitter::BlitterParams *bp, ZoomLevel zoom); }; class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> { |