# 32bpp_optimized.hpp

Go to the documentation of this file.

    00001 /* $Id: 32bpp_optimized.hpp 13639 2008-06-26 15:46:19Z smatz $ */
    00002
    00005 #ifndef BLITTER_32BPP_OPTIMIZED_HPP
    00006 #define BLITTER_32BPP_OPTIMIZED_HPP
    00007
    00008 #include "32bpp_simple.hpp"
    00009 #include "factory.hpp"
    00010
    00011 class Blitter_32bppOptimized : public Blitter_32bppSimple {
    00012 public:
    00013   struct SpriteData {
    00014     uint32 offset[ZOOM_LVL_COUNT][2];
    00015     byte data[VARARRAY_SIZE];
    00016   };
    00017
    00018   /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
    00019   /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
    00020
    00021   /* virtual */ const char *GetName() { return "32bpp-optimized"; }
    00022
    00023   template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
    00024 };
    00025
    00026 class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> {
    00027 public:
    00028   /* virtual */ const char *GetName() { return "32bpp-optimized"; }
    00029   /* virtual */ const char *GetDescription() { return "32bpp Optimized Blitter (no palette animation)"; }
    00030   /* virtual */ Blitter *CreateInstance() { return new Blitter_32bppOptimized(); }
    00031 };
    00032
    00033 #endif /* BLITTER_32BPP_OPTIMIZED_HPP */