|
1 /* $Id$ */ |
|
2 |
|
3 /** @file null.hpp */ |
|
4 |
|
5 #ifndef BLITTER_NULL_HPP |
|
6 #define BLITTER_NULL_HPP |
|
7 |
|
8 #include "base.hpp" |
|
9 #include "factory.hpp" |
|
10 |
|
11 class Blitter_Null : public Blitter { |
|
12 public: |
|
13 /* virtual */ uint8 GetScreenDepth() { return 0; } |
|
14 /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) {}; |
|
15 /* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal) {}; |
|
16 /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |
|
17 /* virtual */ void *MoveTo(const void *video, int x, int y) { return NULL; }; |
|
18 /* virtual */ void SetPixel(void *video, int x, int y, uint8 color) {}; |
|
19 /* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 color) {}; |
|
20 /* virtual */ void SetHorizontalLine(void *video, int width, uint8 color) {}; |
|
21 /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height, int src_pitch) {}; |
|
22 /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height, int dst_pitch) {}; |
|
23 /* virtual */ void MoveBuffer(void *video_dst, const void *video_src, int width, int height) {}; |
|
24 /* virtual */ int BufferSize(int width, int height) { return 0; }; |
|
25 }; |
|
26 |
|
27 class FBlitter_Null: public BlitterFactory<FBlitter_Null> { |
|
28 public: |
|
29 /* virtual */ const char *GetName() { return "null"; } |
|
30 /* virtual */ const char *GetDescription() { return "Null Blitter (does nothing)"; } |
|
31 /* virtual */ Blitter *CreateInstance() { return new Blitter_Null(); } |
|
32 }; |
|
33 |
|
34 #endif /* BLITTER_NULL_HPP */ |