# 8bpp_base.hpp

Go to the documentation of this file.

    00001 /* $Id: 8bpp_base.hpp 10241 2007-06-21 12:36:46Z truelight $ */
    00002
    00005 #ifndef BLITTER_8BPP_BASE_HPP
    00006 #define BLITTER_8BPP_BASE_HPP
    00007
    00008 #include "base.hpp"
    00009
    00010 class Blitter_8bppBase : public Blitter {
    00011 public:
    00012   /* virtual */ uint8 GetScreenDepth() { return 8; }
    00013 //  /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
    00014   /* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal);
    00015 //  /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
    00016   /* virtual */ void *MoveTo(const void *video, int x, int y);
    00017   /* virtual */ void SetPixel(void *video, int x, int y, uint8 color);
    00018   /* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 color);
    00019   /* virtual */ void DrawRect(void *video, int width, int height, uint8 color);
    00020   /* virtual */ void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color);
    00021   /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height);
    00022   /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height);
    00023   /* virtual */ void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch);
    00024   /* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
    00025   /* virtual */ int BufferSize(int width, int height);
    00026   /* virtual */ void PaletteAnimate(uint start, uint count);
    00027   /* virtual */ Blitter::PaletteAnimation UsePaletteAnimation();
    00028 };
    00029
    00030 #endif /* BLITTER_8BPP_BASE_HPP */