12 #ifndef BLITTER_8BPP_OPTIMIZED_HPP 13 #define BLITTER_8BPP_OPTIMIZED_HPP 30 const char *
GetName() {
return "8bpp-optimized"; }
Data structure describing a sprite.
byte data[]
Data, all zoomlevels.
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.
Base for all 8 bpp blitters.
Structure for passing information from the sprite loader to the blitter.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)
Draw an image to the screen, given an amount of params defined above.
ZoomLevel
All zoom levels we know.
Blitter * CreateInstance()
Create an instance of this Blitter-class.
Data stored about a (single) sprite.
Factory for the 8bpp blitter optimised for speed.
8bpp blitter optimised for speed.
Sprite * Encode(const SpriteLoader::Sprite *sprite, AllocatorProc *allocator)
Convert a sprite from the loader to our own format.
BlitterMode
The modes of blitting we can do.
const char * GetName()
Get the name of the blitter, the same as the Factory-instance returns.
The base factory, keeping track of all blitters.
Factory to 'query' all available blitters.