10 #ifndef BLITTER_8BPP_OPTIMIZED_HPP 11 #define BLITTER_8BPP_OPTIMIZED_HPP 28 const char *
GetName()
override {
return "8bpp-optimized"; }
Data structure describing a sprite.
byte data[]
Data, all zoomlevels.
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
How all blitters should look like.
uint32 offset[ZOOM_LVL_COUNT]
Offsets (from .data) to streams for different zoom levels.
Parameters related to blitting.
Base for all 8bpp blitters.
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 8 bpp blitters.
Structure for passing information from the sprite loader to the blitter.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
Sprite * Encode(const SpriteLoader::Sprite *sprite, AllocatorProc *allocator) override
Convert a sprite from the loader to our own format.
Data stored about a (single) sprite.
Factory for the 8bpp blitter optimised for speed.
8bpp blitter optimised for speed.
BlitterMode
The modes of blitting we can do.
ZoomLevel
All zoom levels we know.
The base factory, keeping track of all blitters.
Factory to 'query' all available blitters.