OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef BLITTER_8BPP_OPTIMIZED_HPP
11 #define BLITTER_8BPP_OPTIMIZED_HPP
28 const char *
GetName()
override {
return "8bpp-optimized"; }
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.
uint32 offset[ZOOM_LVL_COUNT]
Offsets (from .data) to streams for different zoom levels.
BlitterMode
The modes of blitting we can do.
How all blitters should look like.
The base factory, keeping track of all blitters.
@ ZOOM_LVL_COUNT
Number of zoom levels.
ZoomLevel
All zoom levels we know.
void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) override
Draw an image to the screen, given an amount of params defined above.
8bpp blitter optimised for speed.
Factory for the 8bpp blitter optimised for speed.
Base for all 8bpp blitters.
BlitterFactory(const char *name, const char *description, bool usable=true)
Construct the blitter, and register it.
Blitter * CreateInstance() override
Create an instance of this Blitter-class.
byte data[]
Data, all zoomlevels.
Structure for passing information from the sprite loader to the blitter.
Parameters related to blitting.
const char * GetName() override
Get the name of the blitter, the same as the Factory-instance returns.
Data structure describing a sprite.