src/blitter/8bpp_simple.hpp
branchgamebalance
changeset 9913 e79cd19772dd
equal deleted inserted replaced
9912:1ac8aac92385 9913:e79cd19772dd
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file 8bpp_simple.hpp */
       
     4 
       
     5 #ifndef BLITTER_8BPP_SIMPLE_HPP
       
     6 #define BLITTER_8BPP_SIMPLE_HPP
       
     7 
       
     8 #include "8bpp_base.hpp"
       
     9 #include "factory.hpp"
       
    10 
       
    11 class Blitter_8bppSimple : public Blitter_8bppBase {
       
    12 public:
       
    13 	/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
       
    14 	/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
       
    15 };
       
    16 
       
    17 class FBlitter_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> {
       
    18 public:
       
    19 	/* virtual */ const char *GetName() { return "8bpp-simple"; }
       
    20 	/* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; }
       
    21 	/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppSimple(); }
       
    22 };
       
    23 
       
    24 #endif /* BLITTER_8BPP_SIMPLE_HPP */