2007-06-12 22:24:12 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file 8bpp_base.hpp Base for all 8 bpp blitters. */
|
2007-06-12 22:24:12 +02:00
|
|
|
|
2007-06-17 22:30:28 +02:00
|
|
|
#ifndef BLITTER_8BPP_BASE_HPP
|
|
|
|
#define BLITTER_8BPP_BASE_HPP
|
2007-06-12 22:24:12 +02:00
|
|
|
|
2007-06-17 22:30:28 +02:00
|
|
|
#include "base.hpp"
|
2007-06-12 22:24:12 +02:00
|
|
|
|
2007-06-17 22:30:28 +02:00
|
|
|
class Blitter_8bppBase : public Blitter {
|
2007-06-12 22:24:12 +02:00
|
|
|
public:
|
2007-06-17 22:30:28 +02:00
|
|
|
/* virtual */ uint8 GetScreenDepth() { return 8; }
|
|
|
|
// /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
2009-02-09 03:57:15 +01:00
|
|
|
/* virtual */ void DrawColourMappingRect(void *dst, int width, int height, int pal);
|
2007-06-17 22:30:28 +02:00
|
|
|
// /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
|
2007-06-12 22:24:12 +02:00
|
|
|
/* virtual */ void *MoveTo(const void *video, int x, int y);
|
2009-02-09 03:57:15 +01:00
|
|
|
/* virtual */ void SetPixel(void *video, int x, int y, uint8 colour);
|
|
|
|
/* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 colour);
|
|
|
|
/* virtual */ void DrawRect(void *video, int width, int height, uint8 colour);
|
|
|
|
/* virtual */ void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour);
|
2007-06-21 14:36:46 +02:00
|
|
|
/* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height);
|
|
|
|
/* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height);
|
|
|
|
/* virtual */ void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch);
|
2007-06-18 22:08:21 +02:00
|
|
|
/* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
|
2007-06-12 22:24:12 +02:00
|
|
|
/* virtual */ int BufferSize(int width, int height);
|
2007-06-19 17:04:08 +02:00
|
|
|
/* virtual */ void PaletteAnimate(uint start, uint count);
|
|
|
|
/* virtual */ Blitter::PaletteAnimation UsePaletteAnimation();
|
2008-08-16 00:06:58 +02:00
|
|
|
/* virtual */ int GetBytesPerPixel() { return 1; }
|
2007-06-12 22:24:12 +02:00
|
|
|
};
|
|
|
|
|
2007-06-17 22:30:28 +02:00
|
|
|
#endif /* BLITTER_8BPP_BASE_HPP */
|