diff options
author | rubidium <rubidium@openttd.org> | 2011-05-01 10:15:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-01 10:15:33 +0000 |
commit | 485c7cd99e4367b271279a7588c47ddabd6a3a47 (patch) | |
tree | 8e8bef53236b50c09032146a8d2da95fcdde5c6f /src/blitter/32bpp_anim.hpp | |
parent | 70c7ec30b1c10bc4502a14e45555fff7a310fca4 (diff) | |
download | openttd-485c7cd99e4367b271279a7588c47ddabd6a3a47.tar.xz |
(svn r22397) -Document: some tidbits of the blitter code
Diffstat (limited to 'src/blitter/32bpp_anim.hpp')
-rw-r--r-- | src/blitter/32bpp_anim.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/blitter/32bpp_anim.hpp b/src/blitter/32bpp_anim.hpp index 02765698b..39a55c514 100644 --- a/src/blitter/32bpp_anim.hpp +++ b/src/blitter/32bpp_anim.hpp @@ -14,11 +14,12 @@ #include "32bpp_optimized.hpp" +/** The optimised 32 bpp blitter with palette animation. */ class Blitter_32bppAnim : public Blitter_32bppOptimized { private: - uint8 *anim_buf; ///< In this buffer we keep track of the 8bpp indexes so we can do palette animation - int anim_buf_width; - int anim_buf_height; + uint8 *anim_buf; ///< In this buffer we keep track of the 8bpp indexes so we can do palette animation + int anim_buf_width; ///< The width of the animation buffer. + int anim_buf_height; ///< The height of the animation buffer. public: Blitter_32bppAnim() : @@ -45,6 +46,7 @@ public: template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom); }; +/** Factory for the 32bpp blitter with animation. */ class FBlitter_32bppAnim: public BlitterFactory<FBlitter_32bppAnim> { public: /* virtual */ const char *GetName() { return "32bpp-anim"; } |