author | glx |
Mon, 26 May 2008 17:40:33 +0000 | |
branch | noai |
changeset 10718 | 7e9d9e40e16f |
parent 10455 | 22c441f5adf9 |
permissions | -rw-r--r-- |
9628 | 1 |
/* $Id$ */ |
2 |
||
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
9629
diff
changeset
|
3 |
/** @file 32bpp_simple.hpp Simple 32 bpp blitter. */ |
9628 | 4 |
|
5 |
#ifndef BLITTER_32BPP_SIMPLE_HPP |
|
6 |
#define BLITTER_32BPP_SIMPLE_HPP |
|
7 |
||
8 |
#include "32bpp_base.hpp" |
|
9 |
#include "factory.hpp" |
|
10 |
||
11 |
class Blitter_32bppSimple : public Blitter_32bppBase { |
|
12 |
public: |
|
13 |
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); |
|
14 |
/* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal); |
|
15 |
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |
|
9629 | 16 |
|
17 |
/* virtual */ const char *GetName() { return "32bpp-simple"; } |
|
9628 | 18 |
}; |
19 |
||
20 |
class FBlitter_32bppSimple: public BlitterFactory<FBlitter_32bppSimple> { |
|
21 |
public: |
|
22 |
/* virtual */ const char *GetName() { return "32bpp-simple"; } |
|
23 |
/* virtual */ const char *GetDescription() { return "32bpp Simple Blitter (no palette animation)"; } |
|
24 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppSimple(); } |
|
25 |
}; |
|
26 |
||
27 |
#endif /* BLITTER_32BPP_SIMPLE_HPP */ |