10#ifndef BLITTER_8BPP_SIMPLE_HPP
11#define BLITTER_8BPP_SIMPLE_HPP
22 std::string_view
GetName()
override {
return "8bpp-simple"; }
Base for all 8 bpp blitters.
BlitterMode
The modes of blitting we can do.
The base factory, keeping track of all blitters.
Base for all 8bpp blitters.
Most trivial 8bpp blitter.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draw an image to the screen, given an amount of params defined above.
Sprite * Encode(const SpriteLoader::SpriteCollection &sprite, SpriteAllocator &allocator) override
Convert a sprite from the loader to our own format.
std::string_view GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
How all blitters should look like.
Factory for the most trivial 8bpp blitter.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
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.
Factory to 'query' all available blitters.
Parameters related to blitting.
Data structure describing a sprite.
ZoomLevel
All zoom levels we know.