10 #ifndef BLITTER_32BPP_OPTIMIZED_HPP 11 #define BLITTER_32BPP_OPTIMIZED_HPP 27 const char *
GetName()
override {
return "32bpp-optimized"; }
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.
byte data[]
Data, all zoomlevels.
Data structure describing a sprite.
uint32 offset[ZOOM_LVL_COUNT][2]
Offsets (from .data) to streams for different zoom levels, and the normal and remap image information...
How all blitters should look like.
Data stored about a (single) sprite.
Factory for the optimised 32 bpp blitter (without palette animation).
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draws a sprite to a (screen) buffer.
Parameters related to blitting.
Structure for passing information from the sprite loader to the blitter.
The most trivial 32 bpp blitter (without palette animation).
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
BlitterMode
The modes of blitting we can do.
ZoomLevel
All zoom levels we know.
The base factory, keeping track of all blitters.
The optimised 32 bpp blitter (without palette animation).