8bpp_simple.hpp

Go to the documentation of this file.
00001 /* $Id: 8bpp_simple.hpp 12971 2008-05-06 15:11:33Z rubidium $ */
00002 
00005 #ifndef BLITTER_8BPP_SIMPLE_HPP
00006 #define BLITTER_8BPP_SIMPLE_HPP
00007 
00008 #include "8bpp_base.hpp"
00009 #include "factory.hpp"
00010 
00011 class Blitter_8bppSimple : public Blitter_8bppBase {
00012 public:
00013   /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
00014   /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
00015 
00016   /* virtual */ const char *GetName() { return "8bpp-simple"; }
00017 };
00018 
00019 class FBlitter_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> {
00020 public:
00021   /* virtual */ const char *GetName() { return "8bpp-simple"; }
00022   /* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; }
00023   /* virtual */ Blitter *CreateInstance() { return new Blitter_8bppSimple(); }
00024 };
00025 
00026 #endif /* BLITTER_8BPP_SIMPLE_HPP */

Generated on Mon Feb 16 23:12:05 2009 for openttd by  doxygen 1.5.6