2007-06-11 11:50:49 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file 8bpp_simple.hpp Simple (and slow) 8 bpp blitter. */
|
2007-06-11 11:50:49 +00:00
|
|
|
|
|
|
|
#ifndef BLITTER_8BPP_SIMPLE_HPP
|
|
|
|
#define BLITTER_8BPP_SIMPLE_HPP
|
|
|
|
|
2007-06-17 20:30:28 +00:00
|
|
|
#include "8bpp_base.hpp"
|
|
|
|
#include "factory.hpp"
|
2007-06-11 11:50:49 +00:00
|
|
|
|
2007-06-17 20:30:28 +00:00
|
|
|
class Blitter_8bppSimple : public Blitter_8bppBase {
|
2007-06-11 11:50:49 +00:00
|
|
|
public:
|
2007-06-12 20:24:12 +00:00
|
|
|
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
|
|
|
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
|
2007-06-21 13:56:59 +00:00
|
|
|
|
|
|
|
/* virtual */ const char *GetName() { return "8bpp-simple"; }
|
2007-06-11 11:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class FBlitter_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *GetName() { return "8bpp-simple"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; }
|
|
|
|
/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppSimple(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BLITTER_8BPP_SIMPLE_HPP */
|