OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef BLITTER_8BPP_SIMPLE_HPP
11 #define BLITTER_8BPP_SIMPLE_HPP
22 const char *
GetName()
override {
return "8bpp-simple"; }
Factory for the most trivial 8bpp blitter.
BlitterMode
The modes of blitting we can do.
How all blitters should look like.
The base factory, keeping track of all blitters.
ZoomLevel
All zoom levels we know.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draw an image to the screen, given an amount of params defined above.
Base for all 8bpp blitters.
BlitterFactory(const char *name, const char *description, bool usable=true)
Construct the blitter, and register it.
Most trivial 8bpp blitter.
Structure for passing information from the sprite loader to the blitter.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
Parameters related to blitting.
Data structure describing a sprite.
Sprite * Encode(const SpriteLoader::Sprite *sprite, AllocatorProc *allocator) override
Convert a sprite from the loader to our own format.
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.