Files @ r6877:d130bc64e73a
Branch filter:

Location: cpp/openttd-patchpack/source/src/blitter/8bpp_optimized.hpp

miham
(svn r10119) -Update: WebTranslator2 update to 2007-06-12 20:09:56
bulgarian - 1 fixed by thetitan (1)
estonian - 23 changed by kristjans (23)
italian - 2 fixed by lorenzodv (2)
korean - 2 fixed by darkttd (2)
romanian - 28 fixed, 59 changed by CrystyB (87)
swedish - 31 fixed by giddorah (31)
ukrainian - 3 fixed by mad (3)
/* $Id$ */

/** @file 8bpp_optimized.hpp */

#ifndef BLITTER_8BPP_OPTIMIZED_HPP
#define BLITTER_8BPP_OPTIMIZED_HPP

#include "blitter.hpp"

typedef Pixel Pixel8;

class Blitter_8bppOptimized : public Blitter {
public:
	uint8 GetScreenDepth() { return 8; }

	void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);

	Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
};

class FBlitter_8bppOptimized: public BlitterFactory<FBlitter_8bppOptimized> {
public:
	/* virtual */ const char *GetName() { return "8bpp-optimized"; }

	/* virtual */ const char *GetDescription() { return "8bpp Optimized Blitter (compression + all-ZoomLevel cache)"; }

	/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppOptimized(); }
};

#endif /* BLITTER_8BPP_OPTIMIZED_HPP */