(svn r27756) -Codechange: Add StringTab enum
[openttd.git] / src / blitter / 8bpp_base.hpp
blob2dff7849923a84b29bb63cf93ec39a8a552eacdb
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file 8bpp_base.hpp Base for all 8 bpp blitters. */
12 #ifndef BLITTER_8BPP_BASE_HPP
13 #define BLITTER_8BPP_BASE_HPP
15 #include "base.hpp"
17 /** Base for all 8bpp blitters. */
18 class Blitter_8bppBase : public Blitter {
19 public:
20 /* virtual */ uint8 GetScreenDepth() { return 8; }
21 /* virtual */ void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
22 /* virtual */ void *MoveTo(void *video, int x, int y);
23 /* virtual */ void SetPixel(void *video, int x, int y, uint8 colour);
24 /* virtual */ void DrawRect(void *video, int width, int height, uint8 colour);
25 /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height);
26 /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height);
27 /* virtual */ void CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch);
28 /* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
29 /* virtual */ int BufferSize(int width, int height);
30 /* virtual */ void PaletteAnimate(const Palette &palette);
31 /* virtual */ Blitter::PaletteAnimation UsePaletteAnimation();
32 /* virtual */ int GetBytesPerPixel() { return 1; }
35 #endif /* BLITTER_8BPP_BASE_HPP */