9627
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file 8bpp_simple.hpp */
|
|
4 |
|
|
5 |
#ifndef BLITTER_8BPP_SIMPLE_HPP
|
|
6 |
#define BLITTER_8BPP_SIMPLE_HPP
|
|
7 |
|
|
8 |
#include "blitter.hpp"
|
|
9 |
|
|
10 |
typedef Pixel Pixel8;
|
|
11 |
|
|
12 |
class Blitter_8bppSimple : 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_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> {
|
|
22 |
public:
|
|
23 |
/* virtual */ const char *GetName() { return "8bpp-simple"; }
|
|
24 |
|
|
25 |
/* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; }
|
|
26 |
|
|
27 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppSimple(); }
|
|
28 |
};
|
|
29 |
|
|
30 |
#endif /* BLITTER_8BPP_SIMPLE_HPP */
|