OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef BLITTER_32BPP_SIMPLE_HPP
11 #define BLITTER_32BPP_SIMPLE_HPP
31 const char *
GetName()
override {
return "32bpp-simple"; }
BlitterMode
The modes of blitting we can do.
The most trivial 32 bpp blitter (without palette animation).
How all blitters should look like.
The base factory, keeping track of all blitters.
Base for all 32bpp blitters.
ZoomLevel
All zoom levels we know.
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.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal) override
Draw a colourtable to the screen.
BlitterFactory(const char *name, const char *description, bool usable=true)
Construct the blitter, and register it.
uint32 PaletteID
The number of the palette.
uint8 v
Brightness-channel.
Structure for passing information from the sprite loader to the blitter.
Parameters related to blitting.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draw an image to the screen, given an amount of params defined above.
Data structure describing a sprite.
Factory for the simple 32 bpp blitter.