OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef BLITTER_32BPP_SIMPLE_HPP
11 #define BLITTER_32BPP_SIMPLE_HPP
31 std::string_view
GetName()
override {
return "32bpp-simple"; }
uint8_t v
Brightness-channel.
Sprite * Encode(const SpriteLoader::SpriteCollection &sprite, SpriteAllocator &allocator) override
Convert a sprite from the loader to our own format.
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.
uint32_t PaletteID
The number of the palette.
Interface for something that can allocate memory for a sprite.
std::array< Sprite, ZOOM_LVL_END > SpriteCollection
Type defining a collection of sprites, one for each zoom level.
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.
std::string_view GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
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.
ZoomLevel
All zoom levels we know.
Factory for the simple 32 bpp blitter.