2007-06-11 11:50:49 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2007-06-11 15:14:57 +00:00
|
|
|
/** @file 8bpp_optimized.hpp */
|
2007-06-11 11:50:49 +00:00
|
|
|
|
|
|
|
#ifndef BLITTER_8BPP_OPTIMIZED_HPP
|
|
|
|
#define BLITTER_8BPP_OPTIMIZED_HPP
|
|
|
|
|
|
|
|
#include "blitter.hpp"
|
|
|
|
|
|
|
|
class Blitter_8bppOptimized : public Blitter {
|
|
|
|
public:
|
2007-06-12 20:24:12 +00:00
|
|
|
/* virtual */ uint8 GetScreenDepth() { return 8; }
|
|
|
|
|
|
|
|
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
2007-06-11 11:50:49 +00:00
|
|
|
|
2007-06-12 20:24:12 +00:00
|
|
|
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
|
2007-06-11 11:50:49 +00:00
|
|
|
|
2007-06-12 20:24:12 +00:00
|
|
|
/* virtual */ const char *GetRenderer() { return "8bpp"; }
|
2007-06-11 11:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class FBlitter_8bppOptimized: public BlitterFactory<FBlitter_8bppOptimized> {
|
|
|
|
public:
|
2007-06-11 21:17:02 +00:00
|
|
|
/* virtual */ const char *GetName() { return "8bpp-optimized"; }
|
2007-06-11 11:50:49 +00:00
|
|
|
|
|
|
|
/* virtual */ const char *GetDescription() { return "8bpp Optimized Blitter (compression + all-ZoomLevel cache)"; }
|
|
|
|
|
|
|
|
/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppOptimized(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BLITTER_8BPP_OPTIMIZED_HPP */
|