src/blitter/8bpp_optimized.hpp
branchgamebalance
changeset 9912 1ac8aac92385
child 9627 6a7c8ead2328
child 9913 e79cd19772dd
equal deleted inserted replaced
9911:0b8b245a2391 9912:1ac8aac92385
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file 8bpp_nice.hpp */
       
     4 
       
     5 #ifndef BLITTER_8BPP_OPTIMIZED_HPP
       
     6 #define BLITTER_8BPP_OPTIMIZED_HPP
       
     7 
       
     8 #include "blitter.hpp"
       
     9 
       
    10 typedef Pixel Pixel8;
       
    11 
       
    12 class Blitter_8bppOptimized : public Blitter {
       
    13 public:
       
    14 	uint8 GetScreenDepth() { return 8; }
       
    15 
       
    16 	void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
       
    17 
       
    18 	Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
       
    19 };
       
    20 
       
    21 class FBlitter_8bppOptimized: public BlitterFactory<FBlitter_8bppOptimized> {
       
    22 public:
       
    23 	/* virtual */ const char *GetName() { return "8bpp-optimzed"; }
       
    24 
       
    25 	/* virtual */ const char *GetDescription() { return "8bpp Optimized Blitter (compression + all-ZoomLevel cache)"; }
       
    26 
       
    27 	/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppOptimized(); }
       
    28 };
       
    29 
       
    30 #endif /* BLITTER_8BPP_OPTIMIZED_HPP */