Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef BLITTER_NULL_HPP
00013 #define BLITTER_NULL_HPP
00014
00015 #include "factory.hpp"
00016
00017 class Blitter_Null : public Blitter {
00018 public:
00019 uint8 GetScreenDepth() { return 0; }
00020 void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) {};
00021 void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal) {};
00022 Sprite *Encode(SpriteLoader::Sprite *sprite, AllocatorProc *allocator);
00023 void *MoveTo(const void *video, int x, int y) { return NULL; };
00024 void SetPixel(void *video, int x, int y, uint8 colour) {};
00025 void DrawRect(void *video, int width, int height, uint8 colour) {};
00026 void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour) {};
00027 void CopyFromBuffer(void *video, const void *src, int width, int height) {};
00028 void CopyToBuffer(const void *video, void *dst, int width, int height) {};
00029 void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch) {};
00030 void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y) {};
00031 int BufferSize(int width, int height) { return 0; };
00032 void PaletteAnimate(uint start, uint count) { };
00033 Blitter::PaletteAnimation UsePaletteAnimation() { return Blitter::PALETTE_ANIMATION_NONE; };
00034
00035 const char *GetName() { return "null"; }
00036 int GetBytesPerPixel() { return 0; }
00037 };
00038
00039 class FBlitter_Null: public BlitterFactory<FBlitter_Null> {
00040 public:
00041 const char *GetName() { return "null"; }
00042 const char *GetDescription() { return "Null Blitter (does nothing)"; }
00043 Blitter *CreateInstance() { return new Blitter_Null(); }
00044 };
00045
00046 #endif