2007-09-09 23:16:01 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file 32bpp_optimized.hpp Optimized 32 bpp blitter. */
|
2007-09-09 23:16:01 +00:00
|
|
|
|
|
|
|
#ifndef BLITTER_32BPP_OPTIMIZED_HPP
|
|
|
|
#define BLITTER_32BPP_OPTIMIZED_HPP
|
|
|
|
|
|
|
|
#include "32bpp_simple.hpp"
|
|
|
|
#include "factory.hpp"
|
|
|
|
|
|
|
|
class Blitter_32bppOptimized : public Blitter_32bppSimple {
|
|
|
|
public:
|
2008-06-26 15:46:19 +00:00
|
|
|
struct SpriteData {
|
|
|
|
uint32 offset[ZOOM_LVL_COUNT][2];
|
2009-06-01 11:49:46 +00:00
|
|
|
byte data[];
|
2008-06-26 15:46:19 +00:00
|
|
|
};
|
|
|
|
|
2007-09-09 23:16:01 +00:00
|
|
|
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
|
|
|
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
|
|
|
|
|
|
|
|
/* virtual */ const char *GetName() { return "32bpp-optimized"; }
|
2008-06-10 17:28:37 +00:00
|
|
|
|
2008-06-26 15:46:19 +00:00
|
|
|
template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
|
2007-09-09 23:16:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *GetName() { return "32bpp-optimized"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "32bpp Optimized Blitter (no palette animation)"; }
|
|
|
|
/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppOptimized(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BLITTER_32BPP_OPTIMIZED_HPP */
|