8bpp_base.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef BLITTER_8BPP_BASE_HPP
00013 #define BLITTER_8BPP_BASE_HPP
00014
00015 #include "base.hpp"
00016
00018 class Blitter_8bppBase : public Blitter {
00019 public:
00020 uint8 GetScreenDepth() { return 8; }
00021 void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
00022 void *MoveTo(const void *video, int x, int y);
00023 void SetPixel(void *video, int x, int y, uint8 colour);
00024 void DrawRect(void *video, int width, int height, uint8 colour);
00025 void CopyFromBuffer(void *video, const void *src, int width, int height);
00026 void CopyToBuffer(const void *video, void *dst, int width, int height);
00027 void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch);
00028 void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
00029 int BufferSize(int width, int height);
00030 void PaletteAnimate(uint start, uint count);
00031 Blitter::PaletteAnimation UsePaletteAnimation();
00032 int GetBytesPerPixel() { return 1; }
00033 };
00034
00035 #endif