Go to the documentation of this file.
10 #ifndef BLITTER_32BPP_OPTIMIZED_HPP
11 #define BLITTER_32BPP_OPTIMIZED_HPP
27 const char *
GetName()
override {
return "32bpp-optimized"; }
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.
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.
@ ZOOM_LVL_COUNT
Number of zoom levels.
ZoomLevel
All zoom levels we know.
byte data[]
Data, all zoomlevels.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draws a sprite to a (screen) buffer.
BlitterFactory(const char *name, const char *description, bool usable=true)
Construct the blitter, and register it.
Factory for the optimised 32 bpp blitter (without palette animation).
uint32 offset[ZOOM_LVL_COUNT][2]
Offsets (from .data) to streams for different zoom levels, and the normal and remap image information...
Structure for passing information from the sprite loader to the blitter.
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
Parameters related to blitting.
Data stored about a (single) sprite.
Data structure describing a sprite.
The optimised 32 bpp blitter (without palette animation).