8bpp_base.hpp
Go to the documentation of this file.00001
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 uint8 GetScreenDepth() { return 8; }
00013
00014 void DrawColorMappingRect(void *dst, int width, int height, int pal);
00015
00016 void *MoveTo(const void *video, int x, int y);
00017 void SetPixel(void *video, int x, int y, uint8 color);
00018 void SetPixelIfEmpty(void *video, int x, int y, uint8 color);
00019 void DrawRect(void *video, int width, int height, uint8 color);
00020 void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color);
00021 void CopyFromBuffer(void *video, const void *src, int width, int height);
00022 void CopyToBuffer(const void *video, void *dst, int width, int height);
00023 void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch);
00024 void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
00025 int BufferSize(int width, int height);
00026 void PaletteAnimate(uint start, uint count);
00027 Blitter::PaletteAnimation UsePaletteAnimation();
00028 };
00029
00030 #endif