Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef BLITTER_32BPP_ANIM_HPP
00013 #define BLITTER_32BPP_ANIM_HPP
00014
00015 #include "32bpp_optimized.hpp"
00016
00017 class Blitter_32bppAnim : public Blitter_32bppOptimized {
00018 private:
00019 uint8 *anim_buf;
00020 int anim_buf_width;
00021 int anim_buf_height;
00022
00023 public:
00024 Blitter_32bppAnim() :
00025 anim_buf(NULL),
00026 anim_buf_width(0),
00027 anim_buf_height(0)
00028 {}
00029
00030 void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
00031 void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
00032 void SetPixel(void *video, int x, int y, uint8 colour);
00033 void DrawRect(void *video, int width, int height, uint8 colour);
00034 void CopyFromBuffer(void *video, const void *src, int width, int height);
00035 void CopyToBuffer(const void *video, void *dst, int width, int height);
00036 void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
00037 int BufferSize(int width, int height);
00038 void PaletteAnimate(uint start, uint count);
00039 Blitter::PaletteAnimation UsePaletteAnimation();
00040
00041 const char *GetName() { return "32bpp-anim"; }
00042 int GetBytesPerPixel() { return 5; }
00043 void PostResize();
00044
00045 template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
00046 };
00047
00048 class FBlitter_32bppAnim: public BlitterFactory<FBlitter_32bppAnim> {
00049 public:
00050 const char *GetName() { return "32bpp-anim"; }
00051 const char *GetDescription() { return "32bpp Animation Blitter (palette animation)"; }
00052 Blitter *CreateInstance() { return new Blitter_32bppAnim(); }
00053 };
00054
00055 #endif