truelight@6937: /* $Id$ */ truelight@6937: truelight@6937: /** @file 8bpp_base.hpp */ truelight@6937: truelight@6937: #ifndef BLITTER_8BPP_BASE_HPP truelight@6937: #define BLITTER_8BPP_BASE_HPP truelight@6937: truelight@6937: #include "base.hpp" truelight@6937: truelight@6937: class Blitter_8bppBase : public Blitter { truelight@6937: public: truelight@6937: /* virtual */ uint8 GetScreenDepth() { return 8; } truelight@6937: // /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); truelight@6937: /* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal); truelight@6937: // /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); truelight@6937: /* virtual */ void *MoveTo(const void *video, int x, int y); truelight@6937: /* virtual */ void SetPixel(void *video, int x, int y, uint8 color); truelight@6937: /* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 color); peter1138@6947: /* virtual */ void DrawRect(void *video, int width, int height, uint8 color); truelight@6948: /* virtual */ void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color); truelight@6985: /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height); truelight@6985: /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height); truelight@6985: /* virtual */ void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch); truelight@6951: /* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y); truelight@6937: /* virtual */ int BufferSize(int width, int height); truelight@6960: /* virtual */ void PaletteAnimate(uint start, uint count); truelight@6960: /* virtual */ Blitter::PaletteAnimation UsePaletteAnimation(); truelight@6937: }; truelight@6937: truelight@6937: #endif /* BLITTER_8BPP_BASE_HPP */